• Resolved Marc

    (@liomar)


    Hi,

    I’m using WRI plugin in two custom post types (recipes / WooCommerce products), but I can’t display my WRI custom title on each type of post.

    I choose the thumbnail mode, and use modified YARPP templates. How can I replace the YARPP title, with the WRI custom titles defined in the setting page ?

    Thanks.

    https://www.ads-software.com/plugins/wp-related-items/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author WebshopLogic

    (@webshoplogic)

    Hi,

    In “Related Types” tab of “WP Related Items (WRI) Settings” page, you can find several sections for every post type used by WRI. In every section there is a “Custom title” field, where you can set the title of the appropriate related items.
    So you can set different title for related posts, related product or related receipts, or for every other post type.

    If you choose “List” or “Thumbnail” in the following tabs, then the original WRI template will be used, which can apply these Custom titles.
    If you choose “According to YARPP display options”, or use a YARPP custom template, then these WRI custom titles cannot be used.
    So you have some possibilities: do not use a specific YARPP template, or if use them, then you can programmatically get the custom title, according to the actual post type.

    I hope you can make the appropriate settings. If you need more help, please give us more information: what is your exact settings, which template do you use? Or we may look at your settings if you give us access to your site (e.g. to your test site).

    Peter

    Thread Starter Marc

    (@liomar)

    Hi Peter and thanks for responding

    In “Related Types” tab of “WP Related Items (WRI) Settings” page, you can find several sections for every post type used by WRI. In every section there is a “Custom title” field, where you can set the title of the appropriate related items.
    So you can set different title for related posts, related product or related receipts, or for every other post type.

    Already done.

    If you choose “List” or “Thumbnail” in the following tabs, then the original WRI template will be used, which can apply these Custom titles.

    I choose thumbnails and I obtain a list with the default title “Related Posts” instead my own custom title. So this is why I tried earlier the “Yarpp way”.

    How can I manage this ?

    Plugin Author WebshopLogic

    (@webshoplogic)

    Hi Liomar!

    Please send us an admin account to your wp-admin area, where we can see your settings. Our email address is [email protected]

    Plugin Author WebshopLogic

    (@webshoplogic)

    Hi,

    Thanks for the wp-admin access.
    Your settings are good.

    Maybe some special access restriction of your site causes the problem, it seems that the plugin can not copy template files into the directory of your active theme.

    WRI and YARPP use templates, and according to YARPP functionality, templates have to be under the directory of your active theme.

    WRI templates have to be in the following directory:
    wp-content/themes/your_theme/wri_template

    This directory and it’s content are copied there normally during WP Related Items plugin activation.

    But if I can see well without FTP access, this wri template directory does not exist in the directory of your active theme. This causes the problem, because without WRI templates, the standard YARPP template is used, and it does not handle custom titles set in WRI.

    Please check if wp-content/themes/your_theme/wri_template directory exists or not.
    If not, you can fix the problem manually by copying the following directory and its content:
    wp-content/plugins/wp-related-items/wri_template
    into your theme directory:
    wp-content/themes/your_theme/

    So you will have this directory:
    wp-content/themes/your_theme/wri_template

    I suppose this will solve the problem.

    If not, please let us know (in this case an FTP access can help us to examine the problem deeper).

    Peter

    Thread Starter Marc

    (@liomar)

    Hi Peter

    And thanks for your response. It was the information that I missed !

    I copied the wri_template directory in my theme directory and all is working now.

    Thanks again for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Display custom title instead of YARPP's one’ is closed to new replies.