Jump to content

Archived

This topic is now archived and is closed to further replies.

fullcontact

Archive Page Category for Custom Post Types Gives 404

Recommended Posts

fullcontact    1
fullcontact

My site runs a plugin that creates/uses a custom post type. The archive page for that custom post type displays the individual entries correctly and the meta data info like the author, date etc. are correct EXCEPT for the category.  Each individual post in the archive contains links to the standard WP post category not the custom post type category. 

 

So every category link in the archive gives a 404 as there are no corresponding post categories.

 

What I'd like to do is edit the category links so they reflect the custom post type.  If this can't be done how can I delete the link so it doesn't show up on the archive page?

 

I was also wondering if anyone had suggestions on how to create archive pages for each custom post type category?

 

Suggestions?

 

 


Start-Build-Grow Your WordPress Powered Business

James Maduk - http://www.wpgrow.com

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

How did you create the custom post types and can you provide a link to the page in question please.

 

Also, am I understanding you correctly, you have created a custom post type and have it set to use categories ? If so, what the point in the CPT, why not just use the Post type ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
fullcontact    1
fullcontact

It's LearnDash a LMS plugin for Wordpress  that uses its own CPT.   an example of the archive page can be found here: http://www.mysmallbizuniversity.com/courses/ 

 

I'm trying to edit the links that are automatically created on that page.  Each Learndash course on the archive page shows the authors picture, the publish date and then the posts "category".  

 

I want that category to be the learndash CPT category not the WP post category.

 

Make sense?  


Start-Build-Grow Your WordPress Powered Business

James Maduk - http://www.wpgrow.com

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Yeah makes sense. However, I have just created a custom post type using the CPT UI plugin and have no such issue with my custom post type archive page. Therefore, as this is a premium plugin you will need to contact their support for assistance.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
fullcontact    1
fullcontact

How do I edit those same fields shown by DMS for regular WP posts?  For example removing the publish date so it doesn't show?


Start-Build-Grow Your WordPress Powered Business

James Maduk - http://www.wpgrow.com

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Use the PostLoop section like you would your post but make sure you have the Type option (left hand panel) selected, this will then use your settings for that CPT only.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • art23130
      By art23130+
      I have uploaded a file shoing missing sections for Custom Post Type
      It is OK for categories and tags but not for a single post types. 
      This is the link. 
      https://www.geoinformation.com/geocode_library/10-10570-rsg-2016-003/
      Any idea?
      thanks 
      Binder1.pdf
    • Michael Kummer
      By Michael Kummer+
      Hi guys,
      Is it possible, and if so, how, to change the layout of the archive pages? For example, I would like to use a smaller and more compact image size for featured images and shorten the amount of text that's displayed for each post without also changing how featured images are displayed on single post pages.
      I am talking about https://michaelkummer.com/apple/ vs How to extend the storage of your iPhone or iPad.
      Thanks
      Michael
       
    • PeriniNero
      By PeriniNero+
      We are building a Custom Post Type with Custom Fields and Custom Taxonomies.
      The only thing we dont understand is how to embed the Custom Fields including header tags and stuff in the Postloop (now we use a text-box below the postloop section but also SEO wise this is not best pratice).
      So we thought to copy the dms Postloop section to our child theme and rename this, to add an extra Postloop section to our theme. Is this the way?
      What exactly to adjust in those 3 files class.posts.php, section.php and style.less (at this point we know how to change the thumb LOL) and where to add the Custom Fields shortcodes?
      Thanks.
    • Audun MB
      By Audun MB+
      I'm using plugins such as Events Manager and WP Glossary. Basically I need to edit the meta information and the breadcrumb for the custom post types Event and Term. The plugins instruct me to add a single-event.php and single-glossary.php in my (child) theme.
      What should I use as a basis for these files? Can I use the templates in the Framework main theme as a basis (tpl-a.php)? Or should I use the whole page.php file?
       
    • jennajonesdesign
      By jennajonesdesign+
      Hi!
      Is it possible to have multiple archive templates? Sometimes I don't like to have all of my posts grouped together. On the current site I am working on we have a "Job Openings" section completely separate from a "News and Events" section. All I am trying to do is add a different header to each section, but even when I save as separate templates they keep over-riding each other. I am unlocking first. 
      Is this just error on my part, or is it not currently an option to have multiple archive templates?
      Let me know! Thanks!
      Jenna
×