• Resolved martcol

    (@hotmale)


    I am using The Bootstrap theme as the parent to my child. I want to fiddle with The Loop and I have managed to get my head around get_template_part but it took me a while to realise that it uses a whole series of content.php files to serve different loops for different circumstances.

    I now want to add my own content.php file in my child theme and can’t work this out because the files are in a sub-folder in the parent theme folder called “partials”

    The Bootstrap uses this:

    while ( have_posts() ) {
    	the_post();
    	get_template_part( '/partials/content', get_post_format() );
    			}

    I want to use conent-listing.php to pull content from a Custom Post Type. Can someone please help me work this out?

    Thanks

    Martin

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get template part and child theme’ is closed to new replies.