Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can create new custom post-type of Eassy:</p> <pre><code>/*Registery of new post-type:Eassy */ add_action('init', 'create_eassy_taxonomies'); function create_eassy_taxonomies() { register_taxonomy('eassy','eassy', array('hierarchical' =&gt; true, 'label' =&gt; 'Eassy Category') ); } add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'eassy', array( 'labels' =&gt; array( 'name' =&gt; _x( 'Eassy', 'taxonomy general name' ), 'singular_name' =&gt; _x( 'Eassy', 'taxonomy singular name' ), 'search_items' =&gt; __( 'Search Eassy' ), 'all_items' =&gt; __( 'All Eassy' ), 'edit_item' =&gt; __( 'Edit Eassy' ), 'update_item' =&gt; __( 'Update Eassy' ), 'add_new_item' =&gt; __( 'Add New Eassy' ), 'new_item_name' =&gt; __( 'New Eassy' ), 'menu_name' =&gt; __( 'Eassy' ), ), 'public' =&gt; true, 'has_archive' =&gt; true, 'hierarchical' =&gt; true, 'supports' =&gt; array( 'title', 'editor', 'thumbnail', 'page-attributes' ) ) ); } </code></pre> <p>To display this post type :</p> <pre><code>$args = array( 'post_type' =&gt; 'eassy', 'posts_per_page' =&gt; 10 ); $loop = new WP_Query( $args ); while ( $loop-&gt;have_posts() ) : $loop-&gt;the_post(); the_title(); echo '&lt;div class="entry-content"&gt;'; the_content(); echo '&lt;/div&gt;'; endwhile; </code></pre> <p>For user role capabilities editor you can use "USer role editor plugin": <a href="http://wordpress.org/extend/plugins/user-role-editor/" rel="nofollow">http://wordpress.org/extend/plugins/user-role-editor/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload