Jump to content
Sign in to follow this  
marmaristasarim

custom fields showing up in normal post artices...need help please to separate the two

Recommended Posts

marmaristasarim

Hello, I have read many of the posts here on custom posts but can't seem to figure it out... I have two types of posts: (1) normal articles/posts (2) another post type to show fields of yacht details. When I add the fields in the template.postloop.php (the fields are set in a table), they show up in my normal "article" above the content. Is it possible to get information on how I can stop those custom fields (magic fields plugin) and their labels from showing up in my normal posts but show up, based on the choosen categories, in a post page? I really don't want to create a subdomain just for listing article posts. Thank you in advance for any information. :)

Share this post


Link to post
Share on other sites
marmaristasarim
I am using PP 1.5.3 and activateded base.

Share this post


Link to post
Share on other sites
Danny
Hi, Would it be possible for you to post a link to your site showing these fields in action and post the code you added to your template.postloop.php please? Also, this seems to be an issue with a plugin and I would highly recommend contacting the plugin author aswell for assistance, as I have no experience with this plugin, so contacting the author too would be a good idea.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
marmaristasarim
Hello Danny I simply placed the fields in a table to show it the way I needed to. I think I just need to put it in the right place in the template.postloop.php file. Here is the link to the website: akotour.com . Thank you :)
..........and the table goes on and on ......... :)

Share this post


Link to post
Share on other sites
kastelic
You can wrap the whole thing in a PHP "if" statement to ensure it only appears on the post type you want. Here is how to check for the post type: http://codex.wordpress.org/Conditional_Tags#A_Post_Type Here's an example that will have to be adjusted for your specific circumstance: [code] Put your html for the table here.

Share this post


Link to post
Share on other sites
marmaristasarim
Thank you very much Kastelic. I will try your suggestion.

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