• Hi,

    I wish to purchase the paid version of OceanWP, but I need to know it will work with my CPTs first.

    I am trying to create custom layouts and meta data displays for my custom post types (or even just getting the post meta to show up under the title on a CPT would be a good start!). I have two custom post types called “encyclopedia” and “browse”.

    I have read all of the previous threads about the issue, but don’t seem to have found a way to do it properly yet. It seems like a very similar issue to this this but I haven’t been able to fix it – and its not clear how the user fixed this issue in that thread.

    Here is what I have done so far:
    – Create a child theme
    – Alter my functions.php to include the meta box for my custom post types (this works to display the meta box, but doesn’t solve my problem)
    – Edit the singular.php to include reference to my custom post types with, for example:

    } elseif ( is_singular( 'encyclopedia' ) ) {
    
    							// Encyclopedia article.
    							get_template_part( 'partials/encyclopedia/layout' );

    – Created the partials folders for “browse” and “encyclopedia” – by copying the partials > single folder from the parent theme and renaming it accordingly.

    I have then attempted to edit the layout.php and meta.php files in the “partials > browse” and “partials > encyclopedia” folders.

    HOWEVER:
    – Making changes in those files does not alter the page layouts for the custom post types.

    I did manage to hide the featured imaged by removing it from the layouts, but all other changes do not seem to register.
    No meta data is displayed on my CPT pages, no author box, no related articles – despite all this information being present in the corresponding layout.php file in each partials folder.

    What am I doing wrong here?

    Thanks,
    Tom

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom POst Type problems’ is closed to new replies.