Community Forums › Forums › Archived Forums › Design Tips and Tricks › Adding Archive Intro Text to a Post Type
Tagged: Archive Intro Text, archives, intro, Intro text, post types
- This topic has 10 replies, 3 voices, and was last updated 9 years, 9 months ago by eluviis.
-
AuthorPosts
-
January 19, 2015 at 12:59 pm #137938eluviisMember
Hi, I use the Archive Intro Text in the Edit Category settings. I use that to add a good intro to the archive pages and to help add more value to them since I do-index them. I think the section for this functionality is part of the Genesis core files as I can't find anything about it on the child theme custom functions.php
However, how do I add Archive Intro Text to a Post-Type? I have a Quickblog custom post-type and a Specialty post-type that work similarly to the main posts post-type. How do I add an Archive Intro Text option to those. And since I'm at it, the Blog page displays the blog posts, but I would also like to add intro text to it.
Here are some examples:
Archive Intro Text to one of my category pages: http://rallyways.com/department/car-culture/
And I also want to add section like that to my Quickblog (which doesn't use categories): http://rallyways.com/quickblog/
And to the blog: http://rallyways.com/blog/
Any help would be greatly appreciated. Thanks.
January 19, 2015 at 2:27 pm #137973David ChuParticipantHi,
The short answer is that you add taxonomy capability of "category" to the custom post type. Then you choose a Category for your post just like with a regular one, and when you show that category archive, it will show your Archive Intro Text (unless your theme isn't set up for it).So you'd either manually code that, or many plugins that work with Custom Post Types will have a setting for Categories (such as Types, which i like).
To avoid having regular Posts show up on your Quickblog Category Archives, you could make separate categories for those.
Hope that points you in the right direction.
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
January 19, 2015 at 2:38 pm #137974eluviisMember@David Chu
Hmm... Well that got me thinking sir.
See, I have taxonomies set up for 1 custom post-type. That being "specialties" (custom post type). One of the taxonomies is "Mazda MX-5". As you can see here, the Archive Intro Text works with no problems: http://rallyways.com/cars/mazda-mx5/
However, for custom post types like Quickblog, I don't actually use taxonomies. Much like with the regular blog page which simply lists all posts from all categories in the respective post type.
This got me thinking. Should I not be using the custom post type as the basic form a display for that post-type? I don't really need or want categories for that post-type. I'm trying to reduce duplicate content from archive pages.
Tricky huh?
I've always simply directly people to rallyways.com/quickblog much in much the same way as I do rallyways.com/blog.
January 19, 2015 at 2:46 pm #137976David ChuParticipantGotcha. My comment still applies in the sense that Category is one of the several WordPress taxonomies. You're talking about tags, I gather, another type of WP taxonomy. For tags per se, especially with something I'm not familar with such as Quickblogs, I really couldn't say, sorry.
Dave
Dave Chu · Custom WordPress Developer – likes collaborating with Designers
January 19, 2015 at 2:55 pm #137978eluviisMemberHi David,
No, I'm not talking about tags. I actually de-index my tags.
I'm talking about a custom post-type.
Imagine the regular posts post type that comes with WP standard. Now, imagine another post type that works just like posts, only it's a separate post-type.
The reason I made that custom post type last year is because I wanted it to be separate from the main blog. The posts on the Quickblog were supposed to be quick, short and not necessarily SEO-optimized. I also didn't want automatic blog updates to happen everyday with these, so I wanted the RSS from these posts to be separate from the main blog RSS so that I could easily create a separate email list update from them.
Additionally, I felt that if the experiment didn't work out, I would just de-index the quickblog if I felt the posts we too short and would hurt the site's SEO.
January 20, 2015 at 3:39 am #138020Genesis DeveloperMemberAdd this in your cpt supports array. Then you can add archive intro text for cpt archive page.
genesis-cpt-archives-settings
January 22, 2015 at 6:49 pm #138338eluviisMember^^^ Ooooooooh. That makes total sense...!
Ok, I'm going to go look right now.
I'll report back, thanks!
January 22, 2015 at 7:26 pm #138347eluviisMember@Genesis Developer - Absolute GENIUS!
Yes, I actually added the functionality to two different custom post types.
One is a portfolio post type that I dragged from my old Minimum installation into Magazine Pro by copying the code in functions.php from Minimum to Magazine Pro. I added genesis-cpt-archives-settings to the supports array and voila!
You can see that one working here (the light grey box at the top): http://rallyways.com/portfolio/
Since my other custom post types are made using a plugin, I looked and the plugin has a field where you can add functionality to the CPT. So I added the little snippet to that one and... perfect!
Here is that one: http://rallyways.com/quickblog/
^^^ That's the Quickblog that I mentioned in one of the earlier posts.
Again, THANK YOU VERY MUCH. That worked brilliantly!
I'll be adding it the the blog and other archive pages that I want indexed very soon.
March 2, 2015 at 6:31 pm #142952eluviisMember@Genesis Developer - Hi, I've had to revisit this. I've added "genesis-cpt-archives-settings" to all my custom post types. However, there is one section I don't know how to do. The blog.
Since the blog page is a template from Genesis, and not a custom post type in the child theme, how do I add that functions to it?
Thanks in advance.
March 2, 2015 at 10:40 pm #142974Genesis DeveloperMemberThis will help you. Try once
March 3, 2015 at 12:26 am #142984 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.