Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

UPDATE: I've added the box of text itself to a few pages, which will hopefully help to explain what I want to do. As you can see, this post has a div at the top explaining that it's part of a series and providing links t every other post in the series. All the other posts in the series have them too, but as of now, I'm just copying and pasting all the code into each one. So when I write part six, I'll have to add the link for part six into six different articles. I want to know if there's any way I can put this div into a separate file and put a line of code at the top of each article to spit out everything in te div so that when I need to add to the links, I only have to do it once?


I have some posts that are part of a series of articles. I'd like to have a box of text to go at the top of each of these posts that says something like "This article is part of the series (x). To read a different article in the series, click on any one of these links" and then has links to every article in the series. It would be a great timesaver if this text could live in one file that I could call up at the beginning of each post I want it to appear in, especially since this particular series isn't finished yet and I'll want to add in newer posts later. This seems like it should be easy to do, but I can't figure it out.

Thanks in advance.

share|improve this question
"series of articles" meaning posts grouped in categories? Tags? – One Trick Pony Sep 15 '11 at 1:14
They aren't grouped into any unique category or tag, though I could make a tag for them it that would be helpful. Right now, they're just called part one, two, three, etc of the same article title. – InkAndPixelClub Sep 15 '11 at 1:47
You should stick to tags or categories as this is built into the Wordpress query functionality to easily get posts by a taxonomy. Creating a custom field for something that's already built in creates more headache for you. – Brian Fegter Sep 15 '11 at 1:50
Ok, so if I tag all of the posts in a particular series as "x," is there a way to get all of the posts tagged as "x" to display the text and links I want at the top? I'd really like to have some obvious links to direct redress to the previous posts in a series if they happen to come in on part four without having to write out the code repeatedly for every post. – InkAndPixelClub Sep 15 '11 at 13:22

closed as too localized by toscho Jul 14 '12 at 21:51

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

It's not a custom solution, but there is a plugin which does this: http://wordpress.org/extend/plugins/organize-series/

I've never used it myself on a production site, but have tested it locally and it seems to work fine. Even if you don't choose to use it, it's worth a look to see how they accomplish it.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.