Okay
  Public Ticket #1885016
custom post type in child theme
Closed

Comments

  • BEJSC1970 started the conversation

    Hi, 

    Currently using "kalium theme - fitness" as a base for our sports club website (loving the theme by the way)

    I am using my child themes' function.php to create a custom post type "coaches" which then uses your "swimming" page saved as a template in WP bakery for it to use for new "coaches" records - all works ok, however the resulting "coach" page then uses the featured image and meta date and title at the top of this page (which your swimming page doesn't)  - i need to use the featured image of the post elsewhere so I don't want to disable it - just not show it at the top of the coach page, also I don't need to show the meta info at the top of the page.

    Because I am using a child theme calling apply_filter to the thumbnail_html in the child theme functions.php  doesn't work

     if I create a child "coaches-single.php" I will obviously lose the header / menu and footer.

    I haven't used wordpress for about 5 years, so am wondering if I am missing something obvious? one possible workaround would be to create 2 different portfolios - is this possible?  (we are currently using the portfolio for the different sports on offer) 

  • [deleted] replied

    Hi,

    I understand your issue partially, so if you are using custom post type to show coaches you need to implement the page structure by yourself. If you are missing the header and/or footer simply use these functions:

    get_header(); // to show the header
    get_footer(); // to show the footer
    Does this works for you?