WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Pronamic Framework

This plugin contains some handy WordPress functions and extends the WordPress admin interface with some nice functions, widgets and more.

Shortcodes

  • 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=""]
    

Template Functions

  • 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));
    }
    

Query to display block

<?php

$query = new WP_Query();
$query->query(array(
    'post_type' => 'pronamic_block' , 
    'name' => 'contact' 
));

while($query->have_posts()) {
    $query->the_post();

    the_content();
}

?>

Template Hierarchy Pronamic Block Widget

  1. pronamic-block-widget-{sidebar_id}.php
  2. pronamic-block-widget-{widget_id}.php
  3. pronamic-block-widget-{block_slug}.php
  4. pronamic-block-widget-{block_id}.php
  5. pronamic-block-widget.php

Requires: 3.0 or higher
Compatible up to: 3.2.1
Last Updated: 2013-1-24
Downloads: 1,167

Ratings

4 stars
4.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1