Reply To: Manual placement

Home Page Forums WP Related Items Manual placement Reply To: Manual placement

#8846

WebshopLogic

Keymaster

Order of the displayed content above and below of your main content (with other plugins)

What if there is another plugin, which adds it’s content just between post content and post meta? Then the placement below post for WRI fails.

You can use the following WordPress filter functions to change the order of your content inserted by different plugins. Change the number 1 values in the last two lines as you need it, the smaller the number, the more ahead the content. The applicable value depends on the other plugins you are using.

// Remove the content that was inserted with the original 1200 priority
remove_filter( 'the_content', array( $GLOBALS['wri'], 'the_wri_content_page_top' ), 1200 ); 	// 1200 is the original priority that is deleted here (top of the page)
remove_filter( 'the_content', array( $GLOBALS['wri'], 'the_wri_content_page_bottom' ), 1200 );	// 1200 is the original priority that is deleted here (bottom of the page)

// Insert the content with the new priority, change number 1 as you need it (the smaller the number, the more ahead the content):
add_filter( 'the_content', array( $GLOBALS['wri'], 'the_wri_content_page_top' ), 1 );			// 1 is the new priority that we are setting now (top of the page)
add_filter( 'the_content', array( $GLOBALS['wri'], 'the_wri_content_page_bottom' ), 1 ); 		// 1 is the new priority that we are setting now (bottom of the page)

Template files
WRI uses YARPP in the background, and YARPP has a very good templating feature, that can be uses. Please find more information about YARPP templates in YARPP documentation.

Multisite environment
In WordPress Multisite environment you have to activate the plugin per site basis. So please do not use network activation, you can activate it on each site.

Similar content must be found on every site, if you’ve activated and configured the plugin on all sites. If there is a problem, please provide more information and screenshots about the settings.