Viewing 5 replies - 1 through 5 (of 5 total)
  • Me too

    As it’s been 2 years since it was updated it looks like it’s been abandoned.

    I wonder if instead we could find someone else to take up its development?

    Thread Starter jt70

    (@jt70)

    I found an alternative that seems to work. I’m in the process of migrating over, but it doesn’t seem too painful. In a nutshell, it uses if/elseif/else in the single.php to call other templates by category (or tags, though I haven’t tested it with has_tag() )
    You create a single-default.php template in case a post isn’t in one of the files specified in single.php.

    You can see the details here:
    https://wordpresshero.com/tricks/different-single-post-pages-in-wordpress.html/

    the article is somewhat dated, but it seems like there isn’t much too the code. I don’t think it would be overly bloated to call the template–seems like it would be similar to calling a sidebar. It seems to work in initial testing, though I have yet to actually try turning off the plugin, as I am not positive what it does with the data.

    Any thoughts? I am assuming if you get this single.php set up and have your posts already categorized, it would be a simple matter of shutting off this plugin. Am I missing anything?

    Thread Starter jt70

    (@jt70)

    OK, I put that code to the test, and it seems to work. In fact, I found an even better route to go. I altered the code a bit, and call the custom_post_template field and use the existing templates.
    I put the following code in my single.php

    <?php
    
    $custom_post_template = get_post_meta($post->ID, 'custom_post_template', true);
    
    if ($custom_post_template == 'TemplateA.php') {
    include(TEMPLATEPATH . '/TemplateA.php'); } 
    
    elseif ($custom_post_template == 'TemplateB.php') {
    include(TEMPLATEPATH . '/TemplateB.php'); }
    
    else {
    include(TEMPLATEPATH . '/single-default.php'); }
    
    ?>

    It seems to work great when I deactivated the plugin. The best part is that if the plugin someday is updates, it is easy to switch back. You can also frontload the templates for your most common traffic to minimize the load a smidge. In my unscientific tests, this seemed to be a hair faster than the plugin.

    Hope that helps someone.
    Regards,
    JT70

    Hopefully someone will see this.

    NextGen Gallery slideshow stopped working and this plugin was the cause. Deactivated it and the only issue is the specific page templates had shorter post area backgrounds: https://www.snowcityarts.org/gallery/15th-anniversary-gala , so the footer no longer shows.

    I’ve tried entering the code as noted above and the one in the mentioned article, and end of with sparsing errors (probably because I’m fairly inexperienced wit php coding).

    I’m hoping someone can take a look and give me some direction.

    Any help will be greatly appreciated.
    dk

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Update Planned?’ is closed to new replies.