WordPress.org

Forums

Organize Series
[resolved] Display series list after the_tags instead of the_content? (7 posts)

  1. SheerHeartAttack
    Member
    Posted 2 years ago #

    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!

    http://wordpress.org/extend/plugins/organize-series/

  2. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  3. SheerHeartAttack
    Member
    Posted 2 years ago #

    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);

    to

    //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!

  4. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  5. SheerHeartAttack
    Member
    Posted 2 years ago #

    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!

  6. Darren Ethier (nerrad)
    Member
    Plugin Author

    Posted 2 years ago #

    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.

  7. SheerHeartAttack
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Organize Series
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.