WordPress.org

Support

Support » How-To and Troubleshooting » How to get template record

How to get template record

  • I have create two template
    1) <?php
    /*
    Template Name: products-leftsidebar
    */
    ……

    2) <?php
    /*
    Template Name: products-page
    */
    ……
    my question is how to add products-leftsidebar template into the products-page template, I am using the_field function(custom field)
    products-leftsidebar all data comes from admin panel

Viewing 1 replies (of 1 total)
  • Hi.,

    Just add products-leftsidebar.php file in your theme folder

    And call include('products-leftsidebar.php') in your Template

Viewing 1 replies (of 1 total)
  • The topic ‘How to get template record’ is closed to new replies.