• Home
  • Quick Start
    • Color Schemes
  • Documentation
    • Shortcodes
    • JaW Hooks
    • Screenshots of ThemeOptions
  • Tutorials
  • Forum
  • Contact
Log In

  • Home
  • Quick Start
    • Color Schemes
  • Documentation
    • Shortcodes
    • JaW Hooks
    • Screenshots of ThemeOptions
  • Tutorials
  • Forum
  • Contact

HomeTag: excerpt

excerpt

wphooks
0 comments
JaW Hooks

Action jaw_postbox_X

This action is used for content of post boxes. function my_init(){ remove_action("jaw_postbox_vertical", array("jwRender", "postboxMeta"), 15, 1); add_action("jaw_postbox_vertical", array("jwRender", "postboxMeta"), 9, 1); } add_action('init', 'my_init', 10); The result can look like this: function my_postbox(){ echo "Something special here"; } add_action("jaw_postbox_vertical", "my_postbox", 11, 1); The result can look like this: List of all hooks you can find HERE

  • October 17, 2016
  • 0
  • 121
wphooks
0 comments
CodeJaW HooksTutorials

Filter jaw_cropped_text

This filter is used in post box. It’s the cutted description and title text of your post. By standard way it looks like this. function my_cropped_text($text){ return strtoupper($text); } add_filter('jaw_cropped_text', 'my_cropped_text'); The result can look like this: List of all hooks you can find HERE

  • March 24, 2016
  • 0
  • 68
wphooks
0 comments
CodeJaW HooksTutorials

Filter jaw_excerpt

This filter is used in post box. It’s the description text of your post. By standard way it looks like this. function my_excerpt($excerpt){ return str_replace("e", "-SECRET-", $excerpt); } add_filter('jaw_excerpt', 'my_excerpt'); The result can look like this: List of all hooks you can find HERE

  • March 24, 2016
  • 0
  • 58
0 comments
CodeTutorials

Post excerpt shows less letters than is set.

This is matter of WordPress. In WordPress documentation you can find this words:   So how to enlarge that limitation? If you want to print longer excerpt, please add at the end of your function.php this code: function jaw_custom_excerpt_length( $length ) { return 100; } add_filter( 'excerpt_length', 'jaw_custom_excerpt_length', 999 );

  • February 24, 2016
  • 0
  • 71
Copyright © 2016 jawtemplates - WordPress Design Studio Allow responsivity