Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #127252
    Frank
    Participant

    Hi there,
    my blog https://blog.frank-muennich.net uses catch-flames-pro which theme displays post/page IDs by default.
    When I add catch-id plugin in order to get IDs of users, categories, tags the page/post IDs are displayed twice.
    Could that be avoided?
    Best regards Frank

    #127302
    Pratik
    Keymaster

    Hi Frank,
    One Id is from theme and other one is from Catch IDs. If you want to remove them, then you need to do it via child theme. If you are comfortable with making modifications via child theme, let me know and I will provide you further codes.

    Regards,
    Pratik

    #127333
    Frank
    Participant

    Hi Pratik,
    I feel almost comfortable and would appreciate receiving the further codes.
    Regards,
    Frank

    #127345
    Pratik
    Keymaster

    Hi Frank,

    Add following code in your child theme’s functions.php file:

    
    function catchflames_child_remove_multi_id() {
    	remove_filter( 'manage_posts_columns', 'catchflames_post_id_column' );
    	remove_filter( 'manage_pages_columns', 'catchflames_post_id_column' );
    
    	remove_action( 'manage_posts_custom_column', 'catchflames_posts_id_column', 10, 2 );
    	remove_action( 'manage_pages_custom_column', 'catchflames_posts_id_column', 10, 2 );
    
    	remove_action( 'admin_head-edit.php', 'catchflames_posts_id_column_css' );
    }
    add_action( 'admin_init', 'catchflames_child_remove_multi_id' );
    

    Let me know how it goes.

    Regards,
    Pratik

    #127375
    Frank
    Participant

    Hi PratiK,

    Perfect solution!

    Thanks very much!

    Regards,

    Frank

    #127428
    Pratik
    Keymaster

    Hi Frank,

    You are welcome. Thank you for the appreciation. If you liked my support and theme, please leave a review at https://wordpress.org/support/theme/catch-flames/reviews/#new-post.

    Regards,
    Pratik

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘IDs’ is closed to new replies.