Posts Tagged ‘users’

A couple of Wordpress fixes for tags and post login screen.

Monday, June 2nd, 2008

I came across a couple Wordpress hacks that helped me get tags to behave.  The first is a little PHP call to get a tag list to appear if you’ve used get_posts() to pull posts from a specific category, and the get_tags() function isn’t working for you.  So, if you’re not using the standard loop, but instead want to have the tags for each post appear in a custom loop, use this function as seen here on the wordpress support forums.

print get_the_term_list( $post->ID, ‘post_tag’, ‘ ‘, ‘ ‘, ‘ ‘ ) ;

with arguments in this order: resource_ID, taxonomy, before, seperator, after.

——

If you are restricting your Wordpress site to specific users, and want to control the page they are directed to immediately after logging in, use the “redirect_to” argument in the URL string for the link.  Also seen here in the forums.

http://example.com/wp-login.php?redirect_to=http://example.com

Popularity: 47% [?]