Support » Theme: OceanWP » No meta on custom post type single page

  • Hi,

    I was wondering why is there no meta data on the custom post single page. On the single posts I see Admin – October 13, 2018 – 0 Comments below the featured image but I dont see that on the custom post single page.

    How do I make sure it’s displayed on custom posts as well?

    Also, can you please tell me how to user the code here for multiple post types.

    Thank you

    • This topic was modified 1 year, 5 months ago by shubh14.
    • This topic was modified 1 year, 5 months ago by shubh14.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    The link you shared for the OceanWP settings metabox. you can find it in the post/page editor (below the editor).

    Can you share your site link so that I can check the issue? Did you use plugin or custom code to create custom post type?

    Hi, thank you for replying.

    I know there’s oceanwp settings at the bottom of the post and page edit screen. However, I want those settings for my CPTs as well and the code I linked above does that. However, I dont know how to edit $types[] = 'your-post-type'; to use multiple post types like, $types[] = 'cpt1', 'cpt2;

    I dont have a live site at the moment. I used Custom Post Type UI to create cpts. See pic – https://i.imgur.com/FOlAPz0.jpg

    Okay, you should try like this

    $types[] = ‘your-post-type1’;
    $types[] = ‘your-post-type2’;
    $types[] = ‘your-post-type3’;
    $types[] = ‘your-post-type4’;

    And the second issue?

    Hello,

    Copy the meta.php file from the OceanWP > partials > single. After copying the file edit it to enable meta for your custom post type.

    Or you can use filter ocean_blog_single_meta to display meta for your custom post type.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No meta on custom post type single page’ is closed to new replies.