mytechead

Android & Wordpress Help center

Archive for the month “October, 2012”

Add new tab in wordpress media gallery

Adding this snippet to the functions.php of your wordpress theme will add a new tab to the featured image popup called mime types. Clicking on this tab will display a list of the allowed file types however this could be changed to display almost any information.

add tab to wordpress media gallery

Source:
Kevin Chard http://wpsnipp.com/index.php/functions-php/add-custom-tab-to-featured-image-media-library-popup/

The $post attribute of wordpress

The wordpress $post object has following attributes :

$post->post_author
$post->post_date
$post->post_date_gmt
$post->post_content
$post->post_content_filtered
$post->post_title
$post->post_excerpt
$post->post_status
$post->post_type
$post->comment_status
$post->ping_status
$post->post_password
$post->post_name
$post->to_ping
$post->pinged
$post->post_modified
$post->post_modified_gmt
$post->post_parent
$post->menu_order
$post->guid

Post Navigation