Viewing 1 replies (of 1 total)
  • Plugin Author WebshopLogic

    (@webshoplogic)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘Manually specify output location’ is closed to new replies.