The values assigned to $user_set_value
should be stored somehow in some form, usually an option. You will know how the values and where the values are stored. It is easy then from there
$user_set_value = get_some_saved_option_value();
$args = array(
'page_id' => $user_set_value
);
$q = new WP_Query( $args );
Just change get_some_saved_option_value()
with the actual method to get the value.
Related Posts:
- Creating a WordPress admin page without a menu for a plugin
- Give custom page template a custom post ID
- Bookmarking custom template pages which all have the same page ID
- Pass PHP variable to javascript
- How to get home page ID?
- Is there a way (plugin?) to restrict a user to being able to edit just one page?
- What is the best page ordering plugin that works well with WPML? [closed]
- Best way to manage a lot of pages in Wp Admin [closed]
- Create page when plugin is activated
- jQuery plugin only in one page/post
- How can I show drafts in wp_dropdown_pages list?
- Pages with 2 Columns
- How to create a Page alias in WordPress
- WP-PageNavi plugin doesn’t work with multiple pages of search results
- How to extract images of post and pages excluding header and logo image in wordpress?
- How to exclude a widget from page 1 of a paginated post
- add_meta_box Callback not being called
- Is there a way to lock certain pages from being edited by anyone other then the admin?
- Replace existing pages with new pages, keep menu links
- How to show category images (from plugin) on a regular page (page-example.php)?
- [Plugin: Posts 2 Posts] How does it work?
- Creating a menu page in a Object Oriented developed plugin
- Distributing and packaging plugins
- Custom Text Under Navigation Links
- Set a category for a page
- Automatically adding post and pages to new blog setups
- Copyright messages for a particular set of pages
- Show a special message for private page?
- How can plugins have their own pages?
- wordpress reusable content blocks
- Add a plugin before main container
- Wondering what these multi-colored extra pages are?
- Create a custom page template inside my wordpress plugin
- Transient unique names
- View Private Published Page with URL Code (no login required)
- Do action only on certain front end pages?
- How to delete page by deactivating plugin
- WordPress web pages keep getting deleted (moved into the trash) by themselves
- Run plugins only on certain pages
- (FES EDD) New vendor submission page is blank
- WordPress plugin/theme or other wayout to create portable pages?
- php page not found for plugin options menu
- Changing page URL and connect newsletter to MailChip
- WordPress page and plugin list using sql query
- Create page from plugin, but have it completely hidden
- How to add subcategories to the blogroll?
- How do I write an inventory list plugin that creates dynamic details pages?
- Can I allow certain people to add/edit pages within a parent?
- Proper way to replace the_content only for pages created by custom plugin
- How to get post ID with hooks publish_post, new_to_publish, etc
- Add menu page issues (permissions & position)
- Display Custom Field Value on Admin Page Column
- Would Gutenberg be considered a PlugIn?
- I need help locating a URL that is on my site map, but that I can’t find in my WordPress dashboard
- Show author on every sub-page
- Form that generates an ID for the customer
- How to have sample page for each new register users in a membership website
- One sub site is slow while all others load fine, same theme & plugins [closed]
- Set post tags using tag ID
- How to create a page with links to other pages that include image and excerpt?
- Thesis 2 custom Page
- Making my plugin create a page?
- Add Content to Content()
- Simulating a wp page – wp page load sequence
- How to create wordpress page that lets users create their own quiz? [closed]
- Huge number of 404 pages getting spawned
- Get Image Having the ID [closed]
- Search by Attachment ID
- Get post content from outside the loop with plugin shortcode usability
- How to create plugin auto create page wordpress?
- Custom form not showing in correct place on page
- Change website directory safely to add a static page on startup
- Price comparison table based on Custom Post Type?
- Use jQuery Datepicker code from plugin
- How to force load a page in plugin?
- How to dynamically change spots of text in custom page?
- Custom page in plugin visible in menu
- Adding a pagenavi to function for displaying bookmarks
- Is there a syntax highlighting plugin for HTML View? [duplicate]
- What is the best way to make a custom page from a plugin?
- Setting text widget to one page only
- Pasting this PHP breaks my page. Why?
- Modify pages widget and make a plugin?
- How do I create pages within a WordPress post?
- Gantry Framework: new page loads homepage content instead of page content
- Woocommerce checkout page broken when set as a checkout in woocommerce settings [closed]
- Elementor Combined all Sections into 1 Text Editor
- Custom plugin places html head content in body
- Pass PHP variable to javascript
- How to permanently show Word Counter on Create/Edit Page. WordPress5.9.3
- Displaying page content from plugin, inside exising empty WP page
- Oops! That page can’t be found
- Copy/paste local images not working in WordPress
- Use get_pages() before another plugin modifies it
- how to show all posts of each category in pages
- Elementor: How to design Dropdown Select Box Navigation page like Chegg
- create pages automatically and dynamically in wordPress
- Custom Post Type with Sequence ID
- Adding LOAD MORE on a page
- Randomize post (and page) IDs on generation