Pronamic wil no longer support and maintain this plugin.
短码
[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=""]
Template Functions
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));
}
Query to display block
query(array(
'post_type' => 'pronamic_block' ,
'name' => 'contact'
));
while($query->have_posts()) {
$query->the_post();
the_content();
}
?>
Template Hierarchy Pronamic Block Widget
- pronamic-block-widget-{sidebar_id}.php
- pronamic-block-widget-{widget_id}.php
- pronamic-block-widget-{block_slug}.php
- pronamic-block-widget-{block_id}.php
- pronamic-block-widget.php
Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your
WordPress installation and then activate the Plugin from Plugins page.