Lousy
MemberForum Replies Created
-
In reply to: show category meta under page title after log out.
February 28, 2012 at 11:53 am #25231and another progress:
in category-template.php I changed
if ( empty( $categories ) )
return apply_filters( 'the_category', __( 'Uncategorized' ), $separator, $parents );
to
if ( empty( $categories ) )
return apply_filters( 'the_category', __( '' ), $separator, $parents );so now it visualy works as I want .. post meta_categories are shown on all pages assigned to category
but the question is: could some of you experieced php pros tell me if this solution is ok ? .. Im complete php and wordpress noob so I dont know what problems I could cause by these 🙂
In reply to: show category meta under page title after log out.
February 28, 2012 at 10:46 am #25230another progress
I added <p class=”meta_categories”><?php the_category( “, ” ); ?></p> to my child loop-page.php .. so now I have it on all pages … but it is even on pages which are not assigned to any category (as uncategorized – and it is not link) … and that is not what I want.
can you help ?
thanx
so I was playing with it and I changed condition below in loop.php
<?php /* Post meta */ ?>
<?php if ( $post_type->name != 'page' || is_user_logged_in() ) : ?>
to
<?php if ( $post_type->name = 'page' || is_user_logged_in() ) : ?>and now it is working after log out as well (on result pages)
so just the change of != to = ‘page’ made the job, any ideas what can get wrong now? and if this solution is good ?
and what should I change to show this line even for single pages ?
thnaks
thanks John for other idea, but nope after log off they dissapear even if only map categories to pages is active (it has to be 🙂 )
any other ideas ? how to disable this rule that after log out it changes ?
thanks
Hey Josh,
thanks for your reply. really apreciate that.
but unfortunately the problem is somewhere else.
Hide Post Categories is not checked and categories are assigned.
it works on category or search results(as you can see on a picture) but only if Im logged in … When I log off the field disappers and I would like to have it on all pages as well (I use map categories to pages plugin so pages are also in categories )
http://screencast.com/t/9K5eY4Kw
any other ideas please ?
L.
no one?
maybe if you see this picture you will understand me better
http://screencast.com/t/9K5eY4Kw
I want to have there arrow highlited part all the time (it dissapears when log off) and not only for category results but for all pages if possible.
thanks a lot
Im searching internet 6 hours already and did not find solution.
Viewing 6 posts - 11 through 16 (of 16 total)
- 1
- 2
