Subscribe:

Labels

Showing posts with label WordPress. Show all posts
Showing posts with label WordPress. Show all posts

Thursday, September 6, 2012

User Contact Fields in WordPress

As you can see this uses the_author_meta instead of get_the_author_meta. The $post global and the $post->post_author reference would strictly speaking not even be needed as they’re called from the global otherwise within the function, but this might prevent issues with retrieving the wrong user contact fields.

That’s it! Now you can add and remove user contact fields as you wish. You can do this in your theme’s functions.php or in a plugin, be sure to add the isset code around it to prevent notices though!

Share it!

Tweet

Subscribe and never miss a post!

Subscribe to the free newsletter now for weekly updates. (No spam, we promise)

Name:

Email:

Subscribe now »

Other posts you may like:

View the Original article

Tag Optimization for WordPress

This allows you to optimize your tags with only a few minutes / hours work, instead of having to get a developer to do all this work for you.

Quickly Adding Tags to Posts

Sometimes you realize that you should have created a certain tag and it’s now a lot of work to do that through the interface. With the term optimizer you can do that quite simply (click for larger image):



View the Original article

WordPress Archive Pages: the tutorial

add_action( 'genesis_before_loop', 'yoast_term_archive_intro', 20 );

Of course you can add some extra code or classes in there to style those boxes a bit more.

Custom Post Type archives

For custom post type archives, this might actually be a bit harder. The beginning of the process is the same: you can create a new file, the name of which should contain your post type: archive-

View the Original article