• Resolved ivanovt

    (@ivanovt)


    Hi, I would like to make an own wordpress template file, which should contain a category description (a page content) on the top of the page and then the listings from the category which is described above.

    So I try to use
    <?php echo do_shortcode(‘[WPBUSDIRMANMVIEWLISTINGS category=’.<a-category-id-depending-on-user-action>.’]’); ?>

    It works as far as the listings from the given category are listed. But it seems that the css and javasript files are missing.

    How could I make them work?

    https://www.ads-software.com/plugins/business-directory-plugin/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Hi ivanovt,

    You’ll have to manually include those files in the template–this is something our code does for BD pages, but other non-BD pages wouldn’t be aware of. Use one of the existing templates as a guide for this.

    Thread Starter ivanovt

    (@ivanovt)

    Thank you, so it works.

    Plugin Author Business Directory Plugin

    (@businessdirectoryplugin)

    Glad to hear it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using shortcode in my template file’ is closed to new replies.