Dayn W Creative

I am a web presence strategist, UX designer, proponent of social media. These are my notes.

Main menu

Skip to primary content
Skip to secondary content
  • Home
  • about
  • contact

Post navigation

← Previous Next →

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

Posted on June 2, 2008 by dayn

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

Related Posts Plugin for WordPress, Blogger...

This entry was posted in blogging, info architecture, open source, web and tagged login, tags, users, wordpress by dayn. Bookmark the permalink.
Proudly powered by WordPress