WordPress.org

Forums

How to get template record (2 posts)

  1. jivak
    Member
    Posted 1 year ago #

    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

  2. Rajan V
    Member
    Posted 1 year ago #

    Hi.,

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.