Looking to populate part of a shortcode within PHP with data from a form field

[ad_1]

Hey all, php rookie here. I’m working with a Job board theme ([https://themeforest.net/item/jobtex-job-board-wordpress-theme/46551352]). It’s great, but I’m trying to mold certain things. I want to display a custom post feed on individual employer pages, that are built using a backend form, and the page is compiled with different PHP files. I want to include a field within that form asking for ‘tag ID’, which will replace the XXXX in this code:

<?php echo do_shortcode(‘[smart_post_show id=”XXXX”]’); ?>

Not sure if helpful, but I have posted a screenshot of the ‘field manager’ within the form that builds these pages. I created that field, that would populate that ‘XXXX’

Hope this makes sense, its driving me nuts trying to figure this out. GREATLY appreciate any help!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer