You can store values in a database and get that value from the database and pass the value to shortcode from the database.
Now you just need one admin page to update these 4 values.
to add menu page refer this
for example, after creating page you can save this 4 values in side option table using update_option()
and using get_option()
when needed.
update_option('anykey','3,100+');
$number = get_option('anykey');
[showsusp figure=$number usptitle="Satisfied Clients"]
I hope you get the idea.
Related Posts:
- How to call function at the bottom of post using plugin?
- Retrieve multiple values passed to a single attribute in a shortcode
- Display a text message if the shortcode is not found?
- append PHP function to the_content
- Loading page template into shortcode
- My shortcode is showing up twice
- How to add Shortcode (font awesome) in widget title?
- Custom plugin issue when trying to use the shortcode twice on a page [closed]
- How to set a custom path, for ajax image upload folder in admin?
- Wrap First Character after in a tag
- Making Quote Plugin more efficient
- custom shortcode will not display the wrapped content
- WordPress php filter admin_body_class not working
- Custom filter in admin edit custom post type responding with invalid post type?
- Append HTML Using Shortcode
- Plugin CSS not enqueing
- Showing content from one page on another
- How can I remove a function that has been added to wordpress with add_filter?
- Add a specific part of current category page url to shortcode
- Removing “wpautop” (auto tags) only on certain pages?
- Redirect to another page using contact form 7? [closed]
- Get URL from shortcode tag
- How to debug this search & replace strings snippet?
- Only first shortcode gets executed
- How to hook code to show after the_content?
- Is it possible to define variables in a wordpress shortcode, and then call the shortcode using a specific variable?
- Create a WordPress shortcode using PHP [duplicate]
- WordPress shortcode returns the data before
- Get the_content surrounded by instead of
- Action Hook Inside WordPress Plugin Shortcode
- Can I remove or edit an include() from a function with a filter?
- Including Custom fields within the_content
- What is the difference between Null vs Empty (Zero Length) string?
- Shortcodes not processing inside post content
- Display a custom name when the user has no name settle in his account
- I want to hide “sold by” on certain pages with id page 43
- using filter and hook inside class
- overwrite wordpress gallery with custom gallery shortcode
- How to return html as a string from php for WordPress
- How to bind each “the_content” elements to a custom variables
- Reload page with a different shortcode when a user selects from a dropdown
- Shortcode Works for Logged in Users but Not Working for Guest
- Add custom filter to register data in array
- using a shortcode in a hyperlink
- WP Custom tables query
- Custom plugin with shortcode not working
- error_log() output for print_r() appearing on page
- Allow only 1 taxonomy per custom post type [duplicate]
- Check if page parent has certain template
- Counting number of posts in a category and its sub categories and displaying result using shortcode
- Add/echo div with Analytics-Code to function in functions.php
- OOP Plugin Development. Including external object
- Authenticating to WordPress, using my own authentication two-factor system
- How can I default to all WordPress roles when parameter is not included in shortcode?
- Create table in database when activating plugin
- Problem with WordPress Ajax form
- Getting my head round WordPress filter
- allow user to select pages from dropdown in my plugin
- Listing and displaying WooCommerce Shipping Zones in the frontend? [closed]
- Recent post display using shortcode
- admin-ajax.php responding with 0
- Need to turn this php into WP shortcode
- How to use return in my custom function instead of echo
- How do I alter the comment form ‘allowed tags’ text in a plugin?
- Add a class to the anchor tag on HTML5 gallery
- Create onClick Event to Re-load a Widget
- Output Buffering – Everything between wp_head and wp_print_footer_scripts?
- Accessing the database from a plugin outside of action hooks
- How to auto fetch customer details in Woocommerce in checkout page
- Can’t upload image using media_sideload_image
- Shortcode from a function not working
- Problem with AJAX in wordpress plugin
- Creating WordPress Shortcode with Variable
- Catchable fatal error: Object of class stdClass could not be converted to string
- Add meta tags to a custom header
- Ajax filter button display all posts
- Must filter functions receive all arguments passed to them?
- Problem in replacing the_content with the_excerpt()
- MySQL Query Returns Array () In Shortcode
- How to get woocommerce orders with get_posts method in a shortcode
- Counting number of posts in multiple (sub)categories using shortcode
- Filter wordpress posts without searching the keywords in the post content
- Create ACF Checkbox to get all ACF Values from Parent Page
- How to pass parameters in wordpress shortcode?
- Apply function.php filter only if url not has /amp/
- Adding variable in WordPress shortcode
- Execute Shortcode in Textfile
- custom taxonomies not working
- Should I set a page as “No-index” if I include it’s content within the front-Page.php via this method?
- 500 Internal server error wp_handle_upload_prefilter
- Autoloading Classes in Plugins
- Comparing Dates within plugin using PHP If statement
- Singleton plugin activation; create database
- Apply filters when loading post via ajax
- Shortcode At top of Page – PHP 5.5 vs 5.4 – ob_start();
- Using the same shortcode to show any table from the database
- How keep woocommerce users separeted in multisite install and keep admins on network
- For each loop will not append to the_content hook
- Is there a better way to output HTML as a shortcode?
- Authenticate + Authorize WP REST API request before built-in WP JSON Schema Payload Validation?