Support » Plugin: Organize Series » Display series list after the_tags instead of the_content?

  • Resolved SheerHeartAttack


    On my theme I have it set up so that a post’s tags display underneath the post (the_content and then the_tags). And I have this plugin set to show the series list after the post also (instead of at the top), but because it’s attached to the_content, it shows up in between the post and its tags (example). I’m wondering if there’s a way to modify the plugin so that it displays after the_tags instead of after the_content? Thanks so much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi there,

    The most accurate way to modify the location of series meta information is to remove the automatic insertion of series_meta information (via the Series Options page) and use the function for outputting that meta information directly in your theme files. All the functions that can be used in theme files are found in the orgSeries-template-tags.php file (with inline comments).

    That should get you pointed in the right direction.

    Hm, I couldn’t get that to work but I’ve gotten it almost perfect another way — by changing the following line in orgSeries-setup.php:

    //series post list box
    		add_action('the_content', array(&$this, 'add_series_post_list_box'), 12);


    //series post list box
    		add_action('the_tags', array(&$this, 'add_series_post_list_box'), 12);

    The only problem is that “More in this series:” gets split apart from the rest of the list then. Is there a way to fix this?

    Thanks so much for your help!

    I strongly urge you NOT to modify core files of any plugin or theme Why? Because you’ll lose those modifications when you update the plugin or theme. If you plan on keeping track of your changes and putting them back everytime a plugin/theme is updated then that’s your call of course.

    I’m sorry I can’t give you help beyond that, my time is limited and I have to reserve some time for customers who have purchased my basic support package.

    I am keeping track, yes. It seems to be the only way since I don’t understand enough about tokens to get your suggested method to work.

    Thanks for your help!

    you’re better option is to learn how WordPress actions and filters work and use that instead of directly modifying the core.

    For instance, you could use the “remove_action()” function to remove the existing action Organize Series has in place and then add your own add_action() to implement what you did above.

    If you put this in your themes functions.php file then you don’t ever have to worry about “keeping track” of the changes when you update the plugin.

    Thank you — I am a little overwhelmed trying to learn all this. I’ve worked with PHP a bit before but I’m not “fluent” in it. I will look into it, though — I really appreciate the suggestion about actions as it gives me something more manageable to start with!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Display series list after the_tags instead of the_content?’ is closed to new replies.