File to handles single content listing:content-single-listing-business.php?

  • Alex
    Newbie 4 points
    March 6, 2015 at 6:42 am

    Have started a child theme and for some reason the system isn’t able to detect the difference between premium/free listings (premium for me is showing maps, images etc etc). In fact it seems to not even use the “content-single-listing-business.php” page at all. I haven’t been able to find out what has gone wrong. Attached is my file structure for my child theme (I know I am not following the convention of adding a “_”to the start of files you are overwriting from the parent theme, and I am doing so because it didn’t work when I tried it).

    From what I can see, all is working with the single.php file, but something is going wrong with this: <?php get_template_part( ‘content-single’, hook_listing_templatename($post->post_type) ); ?>

    You must be logged in to view attached files.
  • Alex
    Newbie 4 points
    March 6, 2015 at 6:44 am

    (I also haven’t made ANY modifications to the following files:

  • Alex
    Newbie 4 points
    March 9, 2015 at 3:39 am

    In the mean time I am putting the content from the “content-single-listing-business.php” into a file called “single-listing_type.php” and all is currently working

  • Josh
    Super Guru 13,875 points
    March 9, 2015 at 6:09 am

    Hello Alex,
    Make sure you follow all steps outlined by Premiumpress in setting up a child theme.If still having the problem i suggest you open a ticket

    This reply was awarded the best answer by the topic poster.
Viewing 4 posts - 1 through 4 (of 4 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes