WordPress.org

Plugin Directory

Changeset 599633


Ignore:
Timestamp:
09/16/12 12:37:43 (20 months ago)
Author:
viniciusmassuchetto
Message:

Fixing readme.txt blockquotes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-diagram/trunk/readme.txt

    r599631 r599633  
    2727        'name' => 'Featured News' 
    2828    ) 
    29 ) ); 
     29) );` 
    3030 
    3131Go to the `Positioning` menu in the admin interface and schedule the posts. 
     
    3333Then, in your templates just do: 
    3434 
    35 <?php $slideshow = wp_diagram_get_query( 'home_slideshow' ); ?> 
     35`<?php $slideshow = wp_diagram_get_query( 'home_slideshow' ); ?> 
    3636<?php if ( $slideshow->have_posts() ) : ?> 
    3737    <?php while( $slideshow->have_posts() ) : $slideshow->the_post(); ?> 
     
    4040 
    4141    <?php endwhile; ?> 
    42 <?php endif; ?> 
     42<?php endif; ?>` 
    4343 
    4444The custom loop above will get the posts scheduled for the `home_slideshow` in the current time. 
     
    6464        'name' => 'Featured News' 
    6565    ) 
    66 ) ); 
     66) );` 
    6767 
    6868Go to the `Positioning` menu in the admin interface and schedule the posts. 
     
    7373Then, in your templates just use `wp_diagram_get_query( 'position_id' )` to call the scheduled posts: 
    7474 
    75 <?php $slideshow = wp_diagram_get_query( 'slideshow' ); ?> 
     75`<?php $slideshow = wp_diagram_get_query( 'slideshow' ); ?> 
    7676<?php if ( $slideshow->have_posts() ) : ?> 
    7777    <?php while( $slideshow->have_posts() ) : $slideshow->the_post(); ?> 
     
    8080 
    8181    <?php endwhile; ?> 
    82 <?php endif; ?> 
     82<?php endif; ?>` 
    8383 
    8484== Screenshots == 
Note: See TracChangeset for help on using the changeset viewer.