list of questions on the main page (wordpress)

4.17K viewsUpdates
0

Tell me how to get a list of questions on the home page in the block

[anspress]

if I put the tag [anspress] does not work in my index.php template . It works only on a static page. But does not support static page requests php

Attachments

222.png

Sorry your question is not clear, please elaborate.

1

You cannot use regular shortcodes in .php files. You will have to call them like so:

<?php do_shortcode('[anspress]'); ?>

Hope this works for you 🙂

You are viewing 1 out of 1 answers, click here to view all answers.