WPIntell

Source evidence

Manually specify output location

WP Related Posts and Products (WRI) · support · 2015-06-24T15:44:00+00:00

complaintsentiment
mediumseverity
0.87relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 32 rows with source links

12.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Big Fish unresolved
Is there a way to manually specify output location like there is with YARPP? Example: <?php related_posts(); ?> https://wordpress.org/plugins/wp-related-items/ Hi, Unfortunately this is not so simple. This plugin uses YARPP templating functions, and contains some customized templates for displaying related items in different places, and on the settings page it is configurable where to display what content. If you have good PHP and WP development knowledge we can give you some information where to start: This function displays related items in WRI: WRI::wri_display_related($placement, $position, $widget_instance, $enable_title) Inside this function yarpp_related($wri_yarpp_related_options); function generates the related content, relevant arguments are set in $option_array. You can set arguments and call yarpp_related on your code. The other possibility using the WRI functions. If you use the right WRI plugin settings you can display related items using the code below, but using this concrete code, “on page” and “bottom” settings should be set on settings page, otherwise the following lines will give back no content: global $wri; $content = $wri->wri_display_related('on_page', 'bottom', null, TRUE); echo $content; (I try this code and I can display related items.) You can find more similar examples if you search for “wri_display_related” in the code. You may have to deactivate some actions to prevent display contents on the original positions. You may have to create or modify some related items template. More information about YARPP templating is in YARPP documentation. I hope this information help you to achieve your aim, good luck! Peter Rath WebshopLogic

Comments

1 shown
WebshopLogic 2015-06-24T21:39:00+00:00

Hi, Unfortunately this is not so simple. This plugin uses YARPP templating functions, and contains some customized templates for displaying related items in different places, and on the settings page it is configurable where to display what content. If you have good PHP and WP development knowledge we can give you some information where to start: This function displays related items in WRI: WRI::wri_display_related($placement, $position, $widget_instance, $enable_title) Inside this function yarpp_related($wri_yarpp_related_options); function generates the related content, relevant arguments are set in $option_array. You can set arguments and call yarpp_related on your code. The other possibility using the WRI functions. If you use the right WRI plugin settings you can display related items using the code below, but using this concrete code, “on page” and “bottom” settings should be set on settings page, otherwise the following lines will give back no content: global $wri; $content = $wri->wri_display_related('on_page', 'bottom', null, TRUE); echo $content; (I try this code and I can display related items.) You can find more similar examples if you search for “wri_display_related” in the code. You may have to deactivate some actions to prevent display contents on the original positions. You may have to create or modify some related items template. More information about YARPP templating is in YARPP documentation. I hope this information help you to achieve your aim, good luck! Peter Rath WebshopLogic