All filters applied to the 'the_content'
hook (including shortcode rendering) are not applied when you call get_the_content()
.
This is why you get raw shortcode from your content.
You could use the_content()
instead, or use apply_filters
directly in your template.
In other words, replace this line:
echo '<p class="p-paragraph" style="text-align:left">'. get_the_content().'</p>';
with either (preferred method):
echo '<p class="p-paragraph" style="text-align:left">';
the_content();
echo '</p>';
or alternatively:
echo '<p class="p-paragraph" style="text-align:left">' . apply_filters( 'the_content', get_the_content() ) . '</p>';
To learn more about these functions, you may look at the documentation and source code at the_content()
, get_the_content()
and 'the_content'
hook
Related Posts:
- Not Able to Get Custom Post Type Gallery Images URL
- How can i link a custom post type thumbnail to intermediate size
- How can I detect a chosen Isotope layout option from within Javascript to generate appropriate layout?
- How to display value of custom fields in page
- Custom post type single-{custom}.php not working
- Change permalinks for posts but not for custom post types
- Mini-Site Strategy
- Assign single template to multiple custom post types?
- How to build a complex page structure
- How can I fix those issues generated by the Themecheck plugin
- Why is get_post_format() for “Standard” returns empty
- Custom Post Type Archive URL takes over page URL
- Password-protect a custom rss feed
- Creating a gallery of featured images from custom post type
- How to make a page template to list all galleries?
- Rename a current used post type
- Template tags to display custom post type posts in category template?
- Custom post type archive sorted and grouped by date in post meta field
- How to retrieve custom field types for all posts in WordPress/PHP?
- adding .current* tags to custom post types and taxonomies
- Page as a child of a Custom Post Type
- Why is archive.php used for my page
- ACF simple text field value not showing
- What’s the difference between same wp functions get_posts(); functions in different form?
- Help need making decision. Ads rotating site on wordpress
- What is the recommended / best way to do this: Event calendar post/type in a block-based theme?
- JS innerhtml changing style when using AJAX
- Display a grid of taxonomy terms at root taxonomy page
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- How to have this permalink structure: post_type/postname/custom_inner_page
- custom comments form for custom post type
- Can anyone help me with galleries and post types?
- How to add multiple images to a custom post type without plugin [closed]
- Warning: Invalid argument supplied for foreach() [closed]
- Custom post type isn’t working
- Warning: Invalid argument supplied for foreach() in post.php [closed]
- Creating my own portfolio custom-type
- Custom WP_Query doesn’t display all posts
- WordPress app page not found error for posts with hyphen in permalink
- Two column layout with alphabetical ordering
- Create a comments template for custom post types
- Api rest_route 404 while building filter for custom posts (filtered by multiple meta keys / custom fields)
- how to get this tax_query working?
- Show Taxonomies with admin area for custom post type?
- Pagination doesnt work in custom post type
- Include custom post type custom taxonomies in Categories widget
- Should Custom post types and fields be in the theme files or in a custom plugin packed into the theme?
- Custom post type’s posts are not showing anywere but in xml sitemap
- If Post type use sidebar (‘tree’)
- Methods for development wordpress themes [closed]
- How to Organize and Sort Gallery of Images
- Having Issue on Getting Metabox Checkbox Value
- Custom meta box in custom post type not working
- How can I tell if I’m on a custom post type archive page?
- How does one go about converting custom post type to post format?
- How to display magic field’s custom write panel in wordpress theme?
- Not Able to Add New Class To CPT Attachment Image
- How to Enable Ascending or Descending In WordPress Default Built-in Loop
- How to store the third party script with HTML code in the wordpress custom input field?
- How to display posts from a certain category in a bootstrap 5 carousel loop with multiple items?
- How to get the custom post data using post id in WordPress?
- Loop all post on single.php
- Custom post type 404 category page
- How to display custom field in product description?
- Manually adding current_page_parent to wp_list_pages()
- programmatically generated custom post type is created more than once
- Add extra elements to the_post in a custom post_type
- Visualize info in just custom post_type in theme
- cpt not display inside nav menu
- How to use posts as tabs in a custom page?
- Issue on Getting URL of Uploaded Image to a Custom Post Type
- Custom Post Type has wrong label and is not found when called by a loop
- Custom post type single page uses the right template in preview mode but shows a different template after being posted
- Custom Post Type archive page listing a 404 or single post
- Too many revision when post status is changes [duplicate]
- Having issue on Loading Meta Data From CSV to CPT
- Values show up in custom home page but not in custom post pages
- Permanent Custom Post Type
- call a function when insert and update a custom post type
- creating a custom post template
- 2 custom posts types, in their own columns, one pagination for both
- wordpress query_posts with foundation 6 Accordion not working correctly
- How To Display Category list from Portfolio post type plugin?
- Edit is changing my custom’s post type parent id
- Making a archive gallery page for a custom post type which already has an archive page
- Custom post type with custom taxonomy permalinks
- Search form to find custom meta box generated data
- erase post excerpt limitation [×]
- How to add gallery support to a custom post type?
- How to Display CPT Posts on index Page
- Query custom post type and showing its content
- Issue on Counting CPT’s Under Taxonomy Term
- Why is my custom form saving with ‘autodraft’ as title and slug?
- Having some trouble properly displaying Custom Post Types in templates
- How to Create Custom Post Type with Multiple Color Options?
- Apply custom names for generic custom taxonomy name?
- How to create custom page templates with default page layout framework?
- Retrieve a post with its ACF repeater fields in wordpress
- WordPress search results grouped by post type
- Default WordPress Query for a Specific Custom Post Type URL