- This topic has 5 replies, 2 voices, and was last updated 6 years, 3 months ago by Pratik.
-
AuthorPosts
-
December 1, 2017 at 5:05 pm #127252FrankParticipant
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 FrankDecember 2, 2017 at 10:45 pm #127302PratikKeymasterHi 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,
PratikDecember 3, 2017 at 7:08 pm #127333FrankParticipantHi Pratik,
I feel almost comfortable and would appreciate receiving the further codes.
Regards,
FrankDecember 3, 2017 at 11:48 pm #127345PratikKeymasterHi 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,
PratikDecember 4, 2017 at 8:59 am #127375FrankParticipantHi PratiK,
Perfect solution!
Thanks very much!
Regards,
Frank
December 5, 2017 at 2:20 am #127428PratikKeymasterHi 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 -
AuthorPosts
- The topic ‘IDs’ is closed to new replies.