This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

content-page.php

By: Ronnie_Fantastic on Oct 29th, 2012  |  syntax: None  |  size: 1.06 KB  |  views: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. /**
  4.  *
  5.  * content*.php
  6.  *
  7.  * The post format template. You can change the structure of your posts or add/remove post elements here.
  8.  *
  9.  * 'id' - post id
  10.  * 'class' - post class
  11.  * 'thumbnail' - post icon
  12.  * 'title' - post title
  13.  * 'before' - post header metadata
  14.  * 'content' - post content
  15.  * 'after' - post footer metadata
  16.  *
  17.  * To create a new custom post format template you must create a file "content-YourTemplateName.php"
  18.  * Then copy the contents of the existing content.php into your file and edit it the way you want.
  19.  *
  20.  * Change an existing get_template_part() function as follows:
  21.  * get_template_part('content', 'YourTemplateName');
  22.  *
  23.  */    
  24.  
  25.         global $post;
  26.         theme_post_wrapper(
  27.                 array(
  28.                         'id' => theme_get_post_id(),
  29.                         'class' => theme_get_post_class(),
  30.                         'title' => theme_get_meta_option($post->ID, 'theme_show_page_title') ? get_the_title() : '',
  31.                         'heading' => theme_get_option('theme_single_article_title_tag'),
  32.                         'before' => theme_get_metadata_icons('edit', 'header'),
  33.                         'content' => theme_get_content()
  34.                 )
  35.         );
  36. ?>
clone this paste RAW Paste Data