Advertisement
Ronnie_Fantastic

content-page.php

Oct 29th, 2012
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  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. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement