Advertisement
srikat

home.php

Mar 30th, 2015
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. // Set the content archives to full
  2. add_filter( 'genesis_pre_get_option_content_archive', 'sk_do_full_content' );
  3. function sk_do_full_content() {
  4.     return 'full';
  5. }
  6.  
  7. // Set content limit
  8. add_filter( 'genesis_pre_get_option_content_archive_limit', 'sk_set_content_limit' );
  9. function sk_set_content_limit() {
  10.     return '250';
  11. }
  12.  
  13. // Set allowed HTML tags in Content Limit
  14. add_filter( 'get_the_content_limit_allowedtags', 'sk_content_limit_custom_tags' );
  15. function sk_content_limit_custom_tags() {
  16.     return '<p>,<br>,<em>,<i>,<ul>,<ol>,<li>,<a>';
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement