show category meta under page title after log out.
thanks very much for your comment
I started to think that maybe Im completely wrong with my decisision to use pages instead of post.
I want to make wordpress presentation for my “company” with some amount of products in different categories .. so I decided to make page for each product … thats why I need to have them in categories. And posts are used only for “news”.
but after your question I realized that I dont rememeber what was the main reason for my decision to NOT use posts for product pages as well ….
what do you experts here think ? can I use posts for product pages and “pages” use only for contact etc. pages ?
thank you for replys … I apreciate that really much ….
Im sorry if my questions are too stupid … but Im real newbie in wordpress.
so insted of puting and changing loop-page.php to child theme. I added action hook to graphene_loop-page graphene_page_meta ..and it works .. is that better way of changing it ? … but I have no Idea how to change the != to == in loop.php … safe way.
any help apreciatedAdmin
You can use Custom Post Type, that is, create a Custom Post Type specifically for Products, with a custom taxonomy for the Product Categories. See this page for a primer on Custom Post Type:
Note that you don’t have to write the codes manually to add a custom post type and custom toxonomy. You can use plugins like the Custom Post Type UI.Quote:so insted of puting and changing loop-page.php to child theme. I added action hook to graphene_loop-page graphene_page_meta ..and it works .. is that better way of changing it?
Yes, that is the MUCH better way of doing it.
Hey Hakim, thanks a million!
but could you help me how to change
<?php if ( $post_type->name != 'page' || is_user_logged_in() ) : ?>
to ==’page’ in loop.php without touching your template files
action hook post_meta is after that … I was searching internet like crazy but without resultsAdmin
ok, thanks .. Im playing with the custom post types ….
It seem thats what I need but I found one problem
Im using Custom Post Type UI plugin you linked before
everything is fine, just I would like this custom posts to behave as pages (without leave comment and next previous link etc.) dont you have some advice for this as well I know it is not your plugin
anyway … really really thank you for your advices
AnonymousFebruary 29, 2012 at 10:25 am #25240
Please put your code between backticks. I’ve added them in your previous comments
You must be logged in to reply to this topic.