Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   How to show Custom Post Types in Atahualpa? (http://forum.bytesforall.com/showthread.php?t=10734)

GreenCoast Oct 26, 2010 12:44 PM

How to show Custom Post Types in Atahualpa?
 
Hey folks,

we installed Atahualpa yesterday and are very satisfied. The devs have done an awesome job.

Today I bumped into a problem with custom post types. We need them to show related posts that we add manually via the plugin "Microkid's Related Posts". Hence, we are now able to relate posts from different post types.

Although the custom posts should be shown (settings should be fine) I do not find a way to show them in the template.

In an howto I have seen that I need to add this to the loop:

Code:

query_posts(array('post_type' => array('post', 'products')));
But where do I have to add it so that my products show up in my categories and on their respective page?

Thanks a lot

Hendrik

GreenCoast Oct 26, 2010 02:54 PM

Quote:

Originally Posted by STB (Post 47533)
should work without adding any 2nd loop

did you add the custom post type under settings > related posts
and in the post, when adding the related post, did you search on the correct tab for the custom post type

The issue is not that the related posts are not displayed but that the posts are not displayed on category pages and on the frontpage.

In the links below you see that the post exists. But when clicking on the category it is not there:

Single post: http://thecancercamp.com/?product=sy...ovoltaic-tiles

Category page: http://thecancercamp.com/?cat=50

How do I add my products to the loop?

justomoolio Feb 15, 2011 03:46 PM

Echo? echo echo? I'm having the same issue.


All times are GMT -6. The time now is 05:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.