Custom Field Shortcode
Looking for shortcodes for Custom Fields on a Single Page?
If you are using CubeWP then why are you worried? CubeWP provides you every possible feature to create your own single page with dynamic tags and shortcodes. If you want to create your single page with Custom Fields shortcode then don't worry with the help of CubeWP Framework you can create your own single page.
- We have added an option in CubeWP Settings.
- Navigate to CubeWP Settings
- Click on Post Settings
- CubeWP Single-Page Turn off
- Now you can create your own single-page template.
- You can also create single page using any page builder or editor.
- Now you need to fetch single post data dynamically
- For that purpose, we have created a shortcode
- Here is [cubewp_post_field field=YOUR FIELD NAME]
What is my Field Name?
You field name name is below your custom field title See the below screenshot.
Note: Please click on unlock icon to copy your field name easily.
What you can achive with these Shortcodes?
- You can use this Shortcode to get any field’s data
- This shortcode gives data after rendering.
- If you get any image field data, It will return data with img tag.
- Same way if you get post field data, it will return the post title with an anchor tag.
- All other text fields will provide the same text data.