Yes it is. Check this function (has_shortcode
):
Check for a shortcode in a page/post content
One of the mistakes that many developers make when creating shortcodes (in themes and plugins) is always loading all scripts and styles. For efficiency’s sake, and also to better prevent conflicts, scripts and styles should only be loaded when they are needed. This is a really handy function that will let you perform any action you want, such as loading scripts and styles, when, and only when, a post has a particular shortcode.
This [wp-hackers] thread also has a couple of methods listed. Hope it helps!
Related Posts:
- How to embed page content in a blog post
- Debugging shortcode problems
- How to exclude shortcode from specific page IDs if it’s set to global
- Shortcode produces blank page
- conditional tags- how to use with shortcodes
- Show own shortcode data on each page
- Making audio playlist by getting page’s parent’s ID
- How To Render Shortcode In AJAX Response?
- Shortcode runs when editing page
- How to insert current user ID in a shortcode?
- How to show the view more on my display of pages shortcode
- Pre-populating new Page creation with shortcodes
- How to output different content of page on different places in my template
- custom page or standalone page?
- Get ID of the page where shortcode is included
- How to read a page’s “Shortcodes” from the Template File?
- How to configure WordPress to handle 75,000 pages?
- How to disable posts and use pages only
- What is the difference between $paged and $page?
- multi page password protection
- Create a “Dummy” parent page for a hierarchy in page listing?
- Change admin startpage to Pages-page?
- Password protected post or page – error message by wrong password?
- Get next/previous cousin page
- WordPress 4 and wp_editor() Not Showing Visual/Text tabs
- Redirect to a page if ancestors is empty
- Get Order of Meta Box in a Page/Post
- Check to see if page exists problems
- Modify Page Title before output via wp_page_list
- Custom /page/2/ template (different from index.php)
- Form action redirect to the same page
- Front Page not showing on Pages
- WordPress pages with hierarchy
- How to incorporate Documentation into wordpress?
- Why doesnt ONE of my links in the footer work properly? [closed]
- Create subpage – filter parent pages list
- Use lots of pages, or categories/posts?
- How to have custom tinyMCE buttons break onto next line when too long
- Get all pages that are published
- Add a predefined page to site
- creating and styling a within a page
- What are trackbacks?
- Determine page content based on page parent
- How to enumerate a list of posts?
- Weird issue with is_pages() with array
- Missing ‘Page Attributes’ in page edit
- How to show the root webpage on all subpaths
- Change base URL of pages created by certain users
- Remove Content edit box from ALL pages (not posts)
- What is full URL for a post?
- Edit Parent page drop menu when creating a page
- Get parent of current page
- Attachment pages stealing page slugs
- How to add an external php page with wordpress?
- Remove comment section from new page
- Proper procedure for wp_insert_post?
- Read more on pages WordPress
- Bad pages redirection
- Parent page shows no child content
- Remove_filter (‘the_content’, ‘wpautop’) only pages
- Weebly Migration to WordPress [closed]
- Use page template for custom $_GET content
- Custom page only editable by one user
- Page Title repeating
- Password Protect Pages Not Working
- Can I connect a page to a taxonomy?
- wp_nav_menu: output featured image of each page listing
- Prompting for review / reapproval of page content
- Limit the amount of main pages
- Change displayed “page name” to distinguish multiple pages with the same title
- How to transfer a site to hosting?
- Add the same content to multiple pages
- Share a folder with files
- Front Page post mirroring revisions to other pages, constantly updating itself
- Microsoft Security Essentials is blocking my WordPress website in IE11
- Cannot use old slug – it just 301s to site home page
- Author information on all pages
- Display inner pages like posts.[Like how post excerpt works]
- include exception inside theme for empty widget area
- How to display time when page is created and edited
- Add role and edit page capabilities
- Add text to the bottom of particular pages
- Access wordpress pages using a self signed shared ssl
- Page loads all pages of the image gallery with pagination
- Using Post ID and Page ID in same function
- Group Pages based on Parent in Admin Area
- WordPress, page 2 shows the same posts as page 1
- How to exclude page in pages module
- get id custom tables on current page
- static page with buton that opens collect email form
- pagination does not work with query_posts. Help! [duplicate]
- Subpage Conditional
- Multiple WordPress Pages
- How to create an user defined page?
- I have over 3000 child pages – but I need a different main page
- How to enable automatic search results in WordPress
- How to make a conditional statement that checks if the page is the child of a certain page?
- Is it possible to keep the page title from actually appearing at the top of the page?
- Missing page on wordpress “Pages” dashboard [closed]
- Fresh WordPress installation not able to simply show page content