What you can do is to use a shortcode, for example, you can add them to your functions.php
or create a plugin
that does the same.
Check this guide, but keep in mind there is a lot of information about WordPress and shortcodes.
In the end, you will only have to call your shortcode wherever you want. Shortcodes can use attributes so you could end with something like this:
[memberThing description="yes"] //...
Related Posts:
- How to check if feed URL was requested?
- problem with ajax and the path to the php page
- How to return a string that has a variable inside in a shortcode?
- Cleanest/Fastest way to avoid calling and retrieving data from the database multiple times?
- Saving metabox repeatable fields
- Targeting single page with JS
- Remove General Tab and Plugin Tab in Settings in Woocommerce
- WooCommerce – Display variation custom field value [closed]
- Include a Gutenberg Block in a PHP file
- Featured image fallback link to permalink
- Facebook “like” open graph meta in header.php
- Working with a modified WordPress & Theme and updating WordPress
- How to filter posts by post format “standard” from wp-json api?
- Register JS for block on frontend only
- What does $wpdb->get_row return?
- Why is file_get_contents returning page source?
- Plugin CSS not enqueing
- What is an equivalent of single_cat_title for getting the slug of the category?
- Count the number of custom posts per user
- WordPress Script stops suddenly
- Woocommerce api: create product with images – bad request
- PHP Fatal error: Uncaught Error: Call to undefined function wp_kses_normalize_entities() in new wordpress installation
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- WordPress admin pointers tour bug?
- Are nonces in WP REST API optional by default?
- getting logged in user info (wp-load.php) from parent directory
- Upload file could not be moved to wp-content/uploads
- HTML tags not showing in excerpt
- Add .htm extention to a custom taxonomy
- How do I get post attachments in menu_order in WordPress?
- Custom gallery in wp3.5
- Excecuting php function in shortcode
- Correct and safe way to include php content in my page
- Add content after the first post in WP Loop
- update_post_meta on multi-dimensional array options
- do_action(), iFrame Gets Displayed Despite Password Protection [closed]
- esc_url( ) won’t use https
- retain querystring values when savincustom options in admin
- Use post ID in functions.php file adminside
- How to show childs of certain custom post type in option list?
- How to edit HTML of my website on WordPress? [closed]
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- wpdb Cannot Update column in Database
- Change default gallery images – Currently they are displaying full size imagese
- How can I search all plugins for composer’s vendor/autoload.php?
- How do I prepare strings for insertions as values into a MySQL table?
- How to get post category list as select in front-end?
- how can I include some custom variable from functions.php?
- How to pick “full/thumbnail” images in the loop?
- Function to call either single post or category
- How to remove the two duplicate values
- AJAX function running TWICE with WordPress admin-ajax.php
- OOP PHP class extends TwentyTwenty_Customize in Child Theme
- PHP using external anonymous function inside class
- How to make Subdomain work for product_tag?
- Woocommerce – Exclude variation attribute on specific variation
- Sort new column in Users wp-admin
- How to spell out a word in products/posts?
- How do I add a function to parent theme
- call to undefined function mysql_connect
- Can’t pass var from php wp_ajax into ajax script : result undefined or null
- Custom PHP form needs refresh to load page correctly
- Child-Theme Category View with modified permalinks (%category% removed)
- Log out without confirmation request (nonce)
- Add Pre-Defined Value to Click Counter in WordPress
- Create a WordPress Contact Form to call a POST AWS API Gateway and send user data
- Show data obtained from a function and place it in a shortocode function
- Confuse between forms and tables
- How do I properly upgrade WordPress’s PHP within an OpenLiteSpeed GCP instance? [closed]
- Delete empty title_tags, find a h1 heading and echo it
- Get posts from year from URL
- HELP: cannot log into wordpress. PHP error
- WordPress is setting from header wrongly in wp_mail
- How to edit content in WordPress and the Polylang – plugin? – with demosite
- Add post title as a link parameter
- Help with find a bit of code to move from functions.php
- oembed facebook link?
- How do I get object if class is instantiated only like this new classname()
- How to create a php page to collect information from a html page
- Default Image not showing up in Customizer for WP_Customize_Cropped_Image_Control
- Is it possible to dupplicate a WordPress post with php?
- Passing different content to template parts
- Filtered table in wordpress
- Run insert if no entry otherwise run update with ajax
- if user is admin display admin link and logout link else display logout only
- Hide cart when empty [closed]
- How to redirect unattached image attachments
- Overwriting a Shortcode
- WordPress changing single quotes to double quotes in title and content
- Easier URL to an image
- Post Title Not showing up
- MySQL database migration to WordPress
- Is this WordPress code causing page weirdness? Can’t scroll to bottom
- Search result page – display values from the result’s metaboxes
- Parse error: syntax error, unexpected ‘else’ (T_ELSE) [closed]
- WordPress add parameters with friendly url structure
- Different behaviour between “include_once” and directly echoing out html code?
- How to modify default tags in wp_head()
- Can’t insert into a database wordpress
- How to get posts by a certain author in inner loop using outer loop variable or post title WordPress