WordPress.org

Ready to get started?Download WordPress

Forums

Oenology
[resolved] remove the tags,permalink,shortlink (3 posts)

  1. etimbuk
    Member
    Posted 1 year ago #

    hi
    i would like to remove the tags,permalink,shortlink, from showing on all post/page and home page

  2. Chip Bennett
    Theme Review Admin
    Theme Author

    Posted 1 year ago #

    Hi etimbuk,

    The easiest way to remove all of the post header content is via filter. Add the following to the functions.php file of a Child Theme:

    add_filter( 'oenology_hook_post_header_metadata', __return_false() );

    To see where this filter is defined, look in functions/hooks.php, on Lines 931-969.

  3. hiteshfrnds
    Member
    Posted 1 month ago #

    I have added
    add_filter( 'oenology_hook_post_header_metadata', __return_false() );
    in the file functions.php at the end. but it is not working am getting the following error
    Warning: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given in /home/intervie/public_html/wp-includes/plugin.php on line 192

    Warning: implode() [function.implode]: Invalid arguments passed in /home/intervie/public_html/wp-content/themes/oenology/functions/hooks.php on line 968

    Can you please tell, if it still works.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic