Skip to main content

Home/ Wordpress/ Group items tagged cms

Rss Feed Group items tagged

Vernon Fowler

Post Types « WordPress Codex - 1 views

  • it is better if you prefix your identifier with a short namespace that identifies your plugin, theme or website that implements the custom post type. For example: acme_product or aw_product for products post type used by a hypothetical ACMEWidgets.com website
  • Namespacing your custom post type identifier will not guarantee against conflicts but will certainly minimize their likelihood.
  • Do pay close attention to not having your custom post type identifier exceed 20 characters though, as the post_type column in the database is currently a VARCHAR field of that length.
  • ...6 more annotations...
  • register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) );
  • When you namespace a custom post type identifier and still want to use a clean URL structure, you need to set the rewrite argument of the register_post_type() function. For example, assuming the ACME Widgets example from above:
  • 'rewrite' => array('slug' => 'products'),
  • Note: In some cases, the permalink structure must be updated in order for the new template files to be accessed when viewing posts of a custom post type.
  • single posts of a custom post type will use single-{post_type}.php and their archives will use archive-{post_type}.php where {post_type} is the $post_type argument of the register_post_type() function.
  • In any template file of the WordPress theme system, you can also create new queries to display posts from a specific post type. This is done via the post_type argument of the WP_Query object.
Vernon Fowler

A Guide to WordPress Custom Post Types: Creation, Display and Meta Boxes | Wptuts+ - 0 views

  • 'menu_icon' => plugins_url( 'images/image.png', __FILE__ ) displays the admin menu icon.
  • Save a 16×16 pixel icon image in your current plugin folder.
Vernon Fowler

Advanced custom fields - Addons - WordPress Plugin of the Week - 3 views

  •  
    Advanced Custom Fields plugin allows developers to take full control of the edit screens & custom field data. Add-ons also allow you to extend the functions even further from limiting characters in a textarea, building unique designed admin pages with the flexible content layout manager to easily including Gravity Forms or Contact Form 7 forms.
Vernon Fowler

WordPress › Support » I want to create more than one Super Admin. Is that pos... - 1 views

  •  
    "I want to create more than one Super Admin. Is that possible?"
Vernon Fowler

Roles and Capabilities « WordPress Codex - 2 views

  • Editor – somebody who can publish and manage posts including the posts of other users. Author – somebody who can publish and manage their own posts. Contributor – somebody who can write and manage their own posts but cannot publish them. Subscriber – somebody who can only manage their profile.
  •  
    "edit_published_posts"
« First ‹ Previous 81 - 100 of 357 Next › Last »
Showing 20 items per page