WordPress.org

Forums

[Plugin: Yet Another Related Posts Plugin] Templates Not Found (18 posts)

  1. nickgassmann
    Member
    Posted 6 years ago #

    Even though the templates are in the themes directory I am still getting this message:

    No YARPP template files were found in your theme (E:\wwwroot\news/wp-content/themes/[themename]) so the templating feature has been turned off.

    Does it have something to do with the slashes bookending news?

  2. djlaszlo
    Member
    Posted 6 years ago #

    Templates are not showing up in my settings page either. I've tried to rename both the templates folder to templates, themes and yarpp-templates, which was the original name of the folder, but none of them work. :s

  3. @djlaszlo - the template files *themselves* should go in your theme... so it should be like

    wp-content/themes/mytheme/yarpp-template1.php
    wp-content/themes/mytheme/yarpp-template2.php
    etc.

    I hope that helps.

    @nickgassman - does that help you as well?

  4. nickgassmann
    Member
    Posted 6 years ago #

    Yes, I guess I assumed that we needed the entire folder in the themes directory. Not sure where I got that idea.

    Thanks Mitch.

  5. maitronaute
    Member
    Posted 5 years ago #

    I put the templates files in my theme directory but... templates are not showing up in my settings page.
    I use the templates files examples. Name form : yarpp-template-*.php.

    Why it doesn't work ?

  6. @nickgassman - please see my response above... by chance did you copy the entire folder into your theme? You want to copy just the files.

  7. maitronaute
    Member
    Posted 5 years ago #

    I did that : copy the entire folder in my theme, just the files.
    But the templates don't show up in the drop-down list (in the yarpp settings page).
    There is something I forgot to do ?

  8. @maitronaute you want to copy the *files* into your theme, not the entire templates folder.

    So if your theme is called mytheme, you want the file structure to look like:

    /wp-content/themes/mytheme/yarpp-template-*.php

    Hope that helps.

  9. Dave333
    Member
    Posted 5 years ago #

    Ah..so that's the problem. I miss read that too.

    It does actuually specifically say to put the contents INSIDE the template folder into your themes folder, not the folder itself:

    1. Copy the folder yet-another-related-posts-plugin into the directory wp-content/plugins/ and (optionally) the sample templates inside yarpp-templates folder into your active theme.

  10. @Dave333 hmm... I'm glad if you could figure it out, though.

  11. Dave333
    Member
    Posted 5 years ago #

    @mitchoyoshitaka Yes thanks. No fault of yours, I just didn't read it properly...like the others who are complaining it doesn't work.

  12. Dave333
    Member
    Posted 5 years ago #

    Oh, there is one thing though.
    For some reason I get a bunch of numbers at the end of each title of the 5 related posts. Here is an example:

    1. Name of post (12.534) First line from the post....
    2. Name of post (21.808) First line from the post....

    What do the numbers mean?

  13. @Dave333 those are the "match scores" between the active post and those related posts... they should not be visible to visitors, though, so if you log out from wp-admin and revisit that page, it should be gone.

  14. Dave333
    Member
    Posted 5 years ago #

    Thanks mitchoyoshitaka,

    But how do I interpret what these mean?

    I've read all through the README file for an explanation, in one section it states:

    1. **An advanced and versatile algorithm**: Using a customizable algorithm considering post titles, content, tags, and categories, YARPP calculates a "match score" for each pair of posts on your blog. You choose the threshold limit for relevance and you get more related posts if there are more related posts and less if there are less

    I've also looked in the settings page but am still not sure how I can make use of this information. Can you please explain what these two numbers mean given the example I posted in the previous post?

    12 what is being matched to 534 what?

    and 21 what is being matched to 808 what?

    What is the definition of an "active" post? Aren't they all active? Are you saying that there are 808 older posts related to 21 active posts? All this is meaningless to me. Shouldn't it just be matching older posts with the single current post that these appear on?

    Sorry if these seem like stupid questions, it's just that I don't understand what these figures are referring to. Do you have a more indepth explanation that you can refer me to?

    Just some additional information in case it helps, my match threshhold is currently set on 5 and title, bodies, tags, and categories are all set on "consider".

    Thanks.

  15. @Dave333 - as the explanation says, I compute a "match score" of "relatedness" for every pair of posts you have. So the score between your current post and post 1 is 12.534 (that's a decimal) and the other pair is 21.808. Related posts with a match score greater than the current "match threshold" is what is displayed.

  16. didjmaster
    Member
    Posted 5 years ago #

    @mitchoyoshitaka, thanks for your help. I, too, uploaded the entire template FOLDER into the theme, instead of each of the files themselves. I guess this might be made a little more clear in the installation of the plugin.

  17. mikaela_d
    Member
    Posted 5 years ago #

    I have no template file drop down menu on my settings page, and also there is nothing beside the "Disallow by category:" or "Disallow by tag:" fields, is anyone else having this problem?

    The template files are in the correct directory...

  18. @mikaela, you'll only see a display when you click the "display using custom template" option.

Topic Closed

This topic has been closed to new replies.

About this Topic