• I’m using a child theme, but it doesn’t appear that YARPP supports it. It keeps looking to the parent theme for WordPress templates as well as the YARPP templates. Is support for this going to be added?

    Warning: include(/home1/derekper/public_html/seatability/wp-content/themes/hybrid/) [function.include]: failed to open stream: No such device in /home1/derekper/public_html/seatability/wp-content/plugins/yet-another-related-posts-plugin/magic.php on line 300

Viewing 15 replies - 1 through 15 (of 21 total)
  • rickybuchanan

    (@rickybuchanan)

    I very much hope YARPP is updated to deal with parent/child themes – I’m having the same problem.

    I have noticed it seems to work if you
    a) rebuild the cache manually
    b) turn off the automatic inclusions in pages/RSS feeds
    b) edit your child theme’s single.php so you call the related_post() function manually
    Then it’ll work with a child theme, but it still gives the above error message on your admin page.

    @ploobers – please see this thread (http://wordpress.org/support/topic/265541) for the include error.

    Thread Starter Derek Perkins

    (@ploobers)

    @mitchoyoshitaka – that isn’t the problem I am having. YARPP is looking under wp-content/themes/parenttheme/ for everything, when it should be looking at wp-content/themes/childtheme/. That breaks a number of different things, both in the admin and in the frontend of the site.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    I concur, this is an issue for me as well.

    Wait… I see that this is a different issue now… I’ve never heard of parent/child themes. Is this a built-in WP behavior? Or is it based on a plugin?

    Also, would putting the yarpp-template files in the parent theme not be acceptable?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    From http://wangenweb.com/2008/07/creating-wordpress-child-themes/

    A Child Theme in WordPress is simply a β€œstyle only” Theme, and is easily made by adding Template: themefolder to your style’s header.

    The idea is that you download a theme, NEVER CHANGE that theme, and make your mods in a child, so that you can upload/upgrade the parent all you want, and not have to go ‘Oh, wait, I changed the style.css to have this as that…’ and replace your images.

    For some reason the files for yarpp are only being picked up in the parent theme, which can work, but is a bit against the idea of the child/parent relationship. You should be putting all your customizations in the child.

    See also: http://themeshaper.com/forums/topic/how-to-change-the-look-of-thematic-with-a-wordpress-child-theme

    Ahah… reading about STYLESHEETPATH vs TEMPLATEPATH right now….

    I created an updated version of magic.php and options.php with a possible fix. If one of you would like to try it out and let me know if it works, I’d very much appreciate it! Thanks! ^^

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    Works!

    Ha! Great! If someone else can corroborate, I’ll push this change out as 3.0.2.

    Alright y’all, I got antsy and pushed this as 3.0.2. After wordpress.org updates its servers, you’ll be able to download it… should fix the child themes issue. πŸ™‚

    Thread Starter Derek Perkins

    (@ploobers)

    I updated to 3.0.2, but I’m still getting this error when it automatically inserts into my post. You can see it here, but I may deactivate the plugin so it doesn’t show up while I’m trying to fix things.

    http://seatability.com/priority-office-products-americas-office-source/

    Warning: include(/home1/derekper/public_html/seatability/wp-content/themes/seatability/) [function.include]: failed to open stream: No such device in /home1/derekper/public_html/seatability/wp-content/plugins/yet-another-related-posts-plugin/magic.php on line 300
    
    Warning: include() [function.include]: Failed opening '/home1/derekper/public_html/seatability/wp-content/themes/seatability/' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home1/derekper/public_html/seatability/wp-content/plugins/yet-another-related-posts-plugin/magic.php on line 300
    Thread Starter Derek Perkins

    (@ploobers)

    Also, I put the yarpp-templates folder into my child theme folder, but in the admin screen, it still tells me that it can’t find the themes and that they are disabled.

    @ploobers – I accidentally did not include my patch for version 3.0.1 with 3.0.2… see here: include topic.

    If you’re searching for a specific template file, you should use locate_template() to search in both the parent and child theme.

    locate_template( array( 'file-name.php' ), true );

    This will be the same as using include or require, but it’ll do the searching for you.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘[Plugin: Yet Another Related Posts Plugin] YARPP Not Compatible with Child Themes?’ is closed to new replies.