This plugin contains some handy WordPress functions and extends the WordPress admin interface with some nice functions, widgets and more.
Login form
[pronamic_login_form]
[pronamic_login_form redirect_to="/"]
Lost password form
[pronamic_lostpassword_form]
Current user posts
[pronamic_current_user_posts]
[pronamic_current_user_posts query="post_type=company"]
Edit post form
[pronamic_edit_post_form]
Terms index
[pronamic_terms_index taxonomy="category"]
[pronamic_terms_index taxonomy="category" parent=""]
Has user image
pronamic_has_user_image( $user_id = null )
Get user image ID
pronamic_get_user_image_id( $user_id = null )
The user image
pronamic_the_user_image( $size = 'post-thumbnail', $attr = '')
Get user image
pronamic_get_the_user_image( $user_id = null, $size = 'post-thumbnail', $attr = '' )
How to use?
$author = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
if(function_exists('pronamic_get_the_user_image')) {
echo pronamic_get_the_user_image( $author->ID, array(93, 140) );
} else {
echo get_avatar(get_the_author_meta('user_email', $author->ID), apply_filters('horses_author_bio_avatar_size', 90));
}
<?php
$query = new WP_Query();
$query->query(array(
'post_type' => 'pronamic_block' ,
'name' => 'contact'
));
while($query->have_posts()) {
$query->the_post();
the_content();
}
?>
Requires: 3.0 or higher
Compatible up to: 3.2.1
Last Updated: 2013-1-24
Downloads: 900
Got something to say? Need help?