Suffice
Forum Replies Created
-
Forum: Plugins
In reply to: How to redirect to different admin page in WordPress?Hmm..
What I’ve noticed is that the code seems to be output on the site itself, with the template_redirect. So much then for having a vague understanding of how it all works.
Forum: Themes and Templates
In reply to: get_category_link not working?Thanks, that worked out great!
Modified it a bit:
<?php $ep_cats = get_the_category($post->ID); foreach( $ep_cats as $ep_cat ) { ?> <a href="<?php echo get_category_link($ep_cat->term_id); ?>" title="<?php $ep_cat->name; ?>">/Category Source/</a> -| <?php } ?>
For the other code, from before:
<?php // Get the ID of a given category $category_id = get_cat_ID( 'Category Name' ); // Get the URL of this category $category_link = get_category_link( $category_id ); ?> <!-- Print a link to this category --> <a href="<?php echo $category_link; ?>" title="Category Name">Category Name</a>
From the WordPress codex. As you can see, it relies on a category id, which
get_the_category($post->ID)
would have worked, I think…Well, thank you again–for your help!
Forum: Themes and Templates
In reply to: get_category_link not working?Oh yeah, failed to copy the whole code…
The problem is now found, yet not the solution.
It would be ideal to use
<?php the_category(', '); ?>
if it was possible to change the title output:<a href="<?php the_category(', '); ?>" title="Category Source">/Category Source/</a>
Which it doesn’t want to.
Forum: Hacks
In reply to: Testing for paginated PagesThanks, that really worked out.
Forum: Themes and Templates
In reply to: Help with Styling Page-Links PaginationThat worked great, thanks a lot!
I had no idea . . heh heh…
Thanks again!
Forum: Themes and Templates
In reply to: Help with Styling Page-Links PaginationIs the .sources different than the .sources a? And that it should be styled different, might that be it??
Forum: Themes and Templates
In reply to: Help with Styling Page-Links PaginationAny thoughts?
Forum: Themes and Templates
In reply to: Help with Styling Page-Links PaginationI thought I had it working, briefly, before.
Help, anyone??
Forum: Hacks
In reply to: If parent category is PHP/Functions helpThat was it! That whole [0] I did not notice at all.. Thank you!