• Resolved Sue

    (@kadian)


    I’m using Related Posts 2.0.4 from https://www.w-a-s-a-b-i.com/archives/2006/02/02/wordpress-related-entries-20/

    I have the plugin all configured within the loop so that the related entries appear at the bottom of each post, but I’d like a title above it so it reads:

    Related Posts
    post 1
    post 2

    and so on.

    The php call is <?php related_posts(); ?> (it is configured via the options panel). I am sure there is a way to alter the call to include a title, but I’m not sure how to do that.

    The site this is installed on is https://www.dailydoseofqueer.com – she is manually adding it now, but I would like a cleaner solution.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • edit the plugin.

    }
    echo "Related Posts";
    echo $output;
    } else {
    echo $before_title.'No related posts'.$after_title;

    change that to whatever you want include a class decalration if you like so you can style it .. blah blah blah .. normal things apply.

    Thread Starter Sue

    (@kadian)

    That worked perfectly, thank you! I’ll upload the mod and let the other folks who were asking know. I don’t know how to add a class declaration or change the style sheet, but that I think I can figure out on my own.

    Thank you so very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add Title to Related Posts’ is closed to new replies.