Denis 920
asked 8 years ago

Hello. Please tell me, can I display the page which displayed the shortcode [dwqa-list-questions] in the post, but in the theme code?

At the moment this page can be displayed only by inserting the shortcode [dwqa-list-questions] in the page, I would like to insert it in the code topic. This can be done?

2 Answers
answered 8 years ago

I’m not yet clear about your question, I think you wanting insert the shortcode to the PHP file of page, If it’s right, you can use the following code:
<?php echo do_shortcode('[dwqa-list-questions]');?>

If not, you can tell me detail about this issue, and send me your site for further checking.

Denis 920
answered 8 years ago

Yes, this is exactly what I needed! Thank you very much!

Powered by DW Question & Answer Pro