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?
- Best way to manage a lot of pages in Wp Admin [closed]
- How can I show drafts in wp_dropdown_pages list?
- Pages with 2 Columns
- WP-PageNavi plugin doesn’t work with multiple pages of search results
- 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
- 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)
- 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?
- Changing page URL and connect newsletter to MailChip
- WordPress page and plugin list using sql query
- 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?
- Add menu page issues (permissions & position)
- Display Custom Field Value on Admin Page Column
- Would Gutenberg be considered a PlugIn?
- 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]
- Thesis 2 custom 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
- Use jQuery Datepicker code from plugin
- How to force load a page in plugin?
- How to dynamically change spots of text in custom page?
- 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
- 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
- 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
- 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
- What plugin would make this happen? If is the theme
- Automatic chage password of pages after some time
- Get Current Post ID in WP Loop For GiveWP
- How to allow URL with filename & extension in wordpress?
- How to Disable Auto Executing Script in A Particular Page Only
- Enabling plugin on specific pages and subpages
- catch urls with specific pattern and show specific content for them by plugin
- Python in WordPress – A “Hello World” implementation
- Page Contents showing in Footer Area
- Add_Meta_box to custom page (formidable edit post)
- How to remove a css class for any wordpress page
- Wordress admin page is fetching error You do not have sufficient permissions to access this page.
- Options page textarea to populate custom post select field
- Best way to create member pages for a lab website? [closed]
- Hidden Some Setting on Post or Page [duplicate]
- Better code/text editing for posts and pages?
- Restrict my pages from public
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- How to tell which Plugin is displaying?
- Wp Pagenavi how to display all results
- Fake Single WordPress Post (Page) Loop
- How to set different users for different pages?
- Redirect url in plugin to somewhere else?
- How do I add custom fields to the “Edit page” admin screen?
- Attachement title in wpallimport
- Update title field while listing wordpress page titles in Elementor selector
- WordPress Plugin and other pages not opening
- How to access the page without registering in wordpress
- Set the Social Icon Size in footer