• Resolved pank6119

    (@pank6119)


    By Default in WordPress If U Need to add and display new column In all post list table of wp dashboard u can just add this shortcode in theme’s function.php file

    add_filter( ‘manage_post_posts_columns’, ‘my_manage_post_posts_columns’ );function my_manage_post_posts_columns( $columns ) {$columns[‘custom_name’] = esc_html__( ‘Custom Name’ ); return $columns;}

    And “Custom Name” Column is created and can displayed in wp dashboard all post in screen option and post list table. it generally happens with all Themes of wordpress But i m unable to do this with Oceanwp

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello @pank6119,

    I’ve added the following hook:

    add_filter( 'manage_post_posts_columns', 'my_manage_post_posts_columns' );
    function my_manage_post_posts_columns( $columns ) {
    	$columns['custom_name'] = esc_html__( 'Custom Name' );
    	return $columns;
    }

    In the child theme: https://docs.oceanwp.org/article/90-sample-child-theme.
    And it works https://postimg.cc/Z0SfM0T7.

    For troubleshooting, please do the following steps and let me know the results:

    0. Enable the primary theme(if you are using a child theme).
    1. Head over to WP Dashboard > Plugin.
    2. Deactivate all plugins.
    3. Then, first, activate the Ocean Extra plugin.
    4. Check your issue.
    5. Then, activate your plugins one by one
    6. After activation of any plugins, check your issue

    Note 1: You can try troubleshooting on the staging website/or on a fresh installation.

    Note 2: if you have any cache plugin or server cache(CDN / Browser Cache and Cookies and …), you need to clear its cache contents or disable them to see your changes. Also, remember to click on the regenerate all assets file and data in Elementor > Tools(if you have Elementor).

    Note 3: Perhaps the priority of the hook needs to be increased, so please try using this one and recheck your issue:

    function my_manage_post_posts_columns( $columns ) {
    	$columns['custom_name'] = esc_html__( 'Custom Name' );
    	return $columns;
    }
    add_filter( 'manage_post_posts_columns', 'my_manage_post_posts_columns', 99 );

    I hope it helps,
    Best Regards

    Thread Starter pank6119

    (@pank6119)

    Sorry I didn’t knew about Priority It worked but then , I Created a custom Plugin and added code there . u might Be right it might be some priority issue it worked in plugin so I didn’t bother to change it back adding to function.php

    I need Another small Help to increase No. Of Post that by default are 7-8 in this maria child theme on my website to be atleast 15 I think i have seen it somewhere option to increase but i m unable to find if u can help me on that please help me.

    Hello @pank6119,

    Please navigate to WP Dashboard > Settings > Reading and set your desired number for the “Blog pages show at most” option.

    Best Regards

    Thread Starter pank6119

    (@pank6119)

    oh Yes How Can I forget this Thank u I was looking for this in customization and OceanWp panel ?? Thnks for all Help

    Marking resolved

    You’re most welcome, and I’m glad we could help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Oceanwp theme don’t show new column in Post List’ is closed to new replies.