Jump to content
Sign in to follow this  
RainerS

Single custom post on a navigation point

Recommended Posts

RainerS

THE SITUATION

  • I have created a custom post type, let's call it "competences"
  • In the WP navigation I have placed one of those posts, let's call it "competence A"
  • When I click on this navigation item, the section "Post Loop", however shows the archive of all related posts based on the selected taxonomies of this single post "competence A".

THE QUESTION

 

  • Is the section "Post Loop" the correct section for this purpose?
    • if YES, how do I configure it to show the post, not the archive
    • if NO, which section should I use?

 

Share this post


Link to post
Share on other sites
beardedavenger

If you create a custom post type, yes, it can use the loop to display it's content.


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
RainerS

Hi

 

Thx for your answer.

 

But my problem is, that on a specific point (in the navigation) I want to show one specific customn post, not the loop

Share this post


Link to post
Share on other sites
beardedavenger

If you're talking about adding the cpt to the menu, that's done in your setup.

 

http://codex.wordpress.org/Function_Reference/register_post_type

 

show_in_menu

 

show_in_nav_menus


Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
RainerS

Hi!

 

Thank you for your answers.

 

My problem is not to add a cpt to a menu entry.

Maybe the enclosed image clarifies my problem.

 

I have added the custom post "HPC" (cpt=competences) the the menu. (marked red)

When I click the menu entry I get a loop of all posts with the same taxonomy as the entry HPC

What I want is to show the single full post "HPC" ONLY at this navigation entry. (the loop entry is the last one marked red)

 

HPC.png

Share this post


Link to post
Share on other sites
Danny
Hi, If you wish to have the Menu Item HPC display only the HPC Cluster post, then remove the HPC menu item from your custom menu and add the link for the HPC cluster post.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×