You can display a shortcode by using two (or three) square brackets at the open and close, e.g.
[[[pdf href="http://www.constitution.org/usdeclar.pdf"]Declaration of Independence[/pdf]]]
In my experience, a standalone shortcode just needs two whereas one that wraps needs three on each end, even though I’ve seen it said that it should work just two in either case.
Related Posts:
- Upload Multiple Files With media_handle_upload
- What is this code in my theme’s functions.php? if (isset($_REQUEST[‘action’]) && isset($_REQUEST[‘password’])
- VERY new to coding – keep breaking site trying to add to functions.php
- write in functions.php
- Pinterest Integration Using functions.php
- Date/time limitation of posts where function must be executed
- Completely disable RSS feeds on WP 5.5.2 and show a 404 page instead of die();
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘greenday_head’ not found or invalid function name
- How can this crude function be improved?
- How to run a function in every page, every device
- How i can put $_GET codes in function.php?
- Numbering lines of code with the tag?
- Save Meta when custom Taxonomy Saves
- remove edit link only for published post and pending post
- Adding a schema code to one specific page using functions.php file
- How set a while with a function
- Drop down list code for sidebar
- Some code is added automatically to my site’s header – what is it?
- How to include a hyperlink in the body text of a custom password protected form?
- How to get tags and categories?
- How to add a class name to the ancestor of a post?
- Code in functions.php appearing on front-end and dashboard [closed]
- I want to add the alt attribute to all the photos!
- Bad value crossorigin for attribute crossorigin on element link
- Text before price on WooCom
- Convert Image to Webp on upload without plugin
- How do I get the current edit page ID in the admin?
- Does hooking into the same action multiple times drain memory?
- Apply custom role capabilities to administrator (without plugin)
- Different wp_mail_from and wp_mail_from_name for specific situations
- In a WordPress plugin, how do you output HTML code inside the DOM header? [closed]
- Linking thumbnail to full size image
- is_front_page not working in functions.php
- WP_Cron doesn’t do the job: Multisite stats
- Simple/basic use of get_current_screen
- Error message : Call to undefined function request_filesystem_credentials()
- How to display most viewed post in my sidebar?
- override parent theme configuration in child functions.php
- Breadcrumbs – Exclude Child Categories
- Why won’t my scripts load?
- Overwriting Parent Theme’s Image Sizes
- Hard-coding custom menu elements for menu manager
- Do not add content filter on page template
- Create post using Ajax
- Function to update post_meta based on existing post_meta
- Load jquery only for certain pages in the backend
- How to set the default avatar of buddypress avatar [closed]
- Custom styles.css sheet for visual editor
- Publishing just a Facebook URL without full code snippet
- Filter an WordPress Function in (general-template.php)
- Unable to return values from function
- Show some menu sub items as dropdown under a menu item
- Set “woocommerce_is_purchasable” to false for specific “$product->is_stock_status”
- The correct way to add a JavaScript in the functions.php [closed]
- How to remove some item from WordPress Dashboard for user Author
- Disabling Author Page only for subscribers
- Showing user profile data on front-end
- How to register a menu based on a ACF condition
- How to convert raw url to hyperlink?
- Split single-review.php to two parts
- Breaking up multiple words and inserting an image after first word
- get content from page through AJAX
- Why is this function crashing my wordpress installation? [closed]
- colorbox not loading in
- The work of WordPress Function update_post
- how can I change all wordpress media file url to custom cdn url?
- Changing the HTML of notices in WooCommerce [closed]
- Can I use ‘Featured Image’ as a hero image and a thumbnail?
- How to Override Page Template if URL matches query?
- Save_post – Warning: Cannot modify header information
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- Modify content inside post before first publish
- Pass an argument into a function to extract from array
- function class doesnt work
- how to remove a tag in the_category function
- Load CSS file conditionally
- my wordpress doesn’t save items to customized widget area
- Copying a widget class to functions.php results on a blank page
- save_post doesn’t correctly process function call with php class
- No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file
- Changing the register url is not working
- Newest comments first not working
- Pass arguments to function class with do_action()
- How to a override parent theme page that has been included with require_once?
- Display most popular posts
- Database Query not working
- Can I use a function to return HTML and the result of another function?
- Excerpt length: get 2 paragraphs
- Remove heading tags on line break
- How to use WP_rewrite?
- Wp get archive only text not link
- can not call functions in function.php
- Add custom fields after post/page title
- Ajax call does not work for this custom code
- Sort results by name & asc order on homepage
- Add the title of a widget as an ID – for anchor links
- What are the parameters are used in add_action and filters?
- Creating mixture of shortcodes to use in the visual/text editor
- Add functionality to block comment authors in the Comment edit pag
- WordPress enque the same script causes the setInterval not to work