Hourray : find it : do_shortcode do the trick !
here is the final code :
// --------------------------------------------------------------------------------------------------------------------
//Add a ShorCode to get a page/post content
add_shortcode ('post_cat3','get_post_cat3');
function get_post_cat3 ($att) {
$query = new WP_Query( 'cat=36' );
if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post();
$aaa .= '<p>------------</p>'.do_shortcode(get_the_content());
endwhile;
endif;
return do_shortcode($aaa);
}
Related Posts:
- Turn a URL into an Attachment / Post ID
- ZIP up all images displayed in a [gallery] and offer as download link
- Add existing images from Media Library in to custom gallery
- Can I load posts via Ajax?
- How do I change the gallery that is inserted in the post?
- How can I remove “”
- Add container div to gallery using post_gallery
- How to hide first gallery for every post?
- Get image from post’s gallery
- Should a photo gallery be in a post or on a page?
- How is a gallery associated with some post in database?
- posts_per_page option limits the number of Gallery items
- plugin to post from admin to flickr [closed]
- How to get the next and previous image title from attachment or gallery?
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- How can i showcase all my galleries?
- Rewrite image links from attachment id to attachment link
- Display image gallery if more than 1 image
- show image gallery in archives or category page
- Colorbox not working on native WordPress gallery when gallery is loaded thru AJAX
- Integrate video and iframe in a post type gallery
- Post gallery as carousel
- How to use extract shortcode in loop?
- Gallery just showing plain short code like [gallery ids="240,236,275"]. how to solve this?
- WP Gallery Image Page Issue When 2 galleries share one image
- standard wpGallery for post won’t work
- How to move all images in a post to a single gallery for a bunch of posts?
- Stop WP from creating “Sample Page” and “Hello World!” post
- How to Create Editable Blocks of Text for the Homepage?
- Count how many posts in category
- Custom Single Post By Category
- Set Post Title to Read-only and Disable Permalink Slug Editor in Gutenberg
- how to get permalink using sql
- Adding Post Counts to Menu (Nav) Programmatically?
- how to display full post with pagination on home page
- Show chart in post using data passed as custom field
- Show One Category on Post
- Show post titles only on the homepage
- how to grab first link in post… and of course call it
- Get all Youtube video’s from posts and embed them on a different page
- How can I highlight syntax like it appears on stackoverflow?
- What Defines What Category A Post Picks (if in multiple)
- Add Category name to Post Title (h1)
- Blogroll – Different layout for first post
- How to delete old posts’ edits to save space?
- When trashing a post, also trash related comments
- Image Insert into posts and pages not working after 3.2.1 update
- Blog Posts not showing title
- Show info to author only
- Make Post Editor Select Number of Columns To 1 By Default
- Display post category in foreach loop with category link
- Adding the_date inside tags around the_content
- Mixing Tweets with Posts
- How to Link to all posts that have the Standard Post Format
- Problem with permalink routing?
- Two loops, one AJAX loop, exclude posts in first loop from second loop, loops are in different files
- Whenever an author saves their post a \" is added next to the double quotation marks
- updating a post doesn’t trigger a function
- Updating post data on save (save_post vs wp_insert_post_data)
- Lost draft under all posts and drafts
- “edit_published_posts” and “edit_other_post” issue
- WordPress is replacing double minus signs in Post Title, how to disable it?
- using is_paged for hiding image on posts
- WordPress custom post type with folder structure in slug
- wpColorPicker – problem with implementation to post meta
- get posts from Custom Post Type & Category
- How to group only VISIBLE posts? [closed]
- wordpress posts template remove default template from menu
- Does WP automatically tag posts into the archive?
- Show custom post with custom categories with specific slug
- separate the post of a category by subcategory
- Shortcode for tables which can include comma and linebreaks
- Indenting within a blockquote
- Filter post by users creation date
- How can I pass form entry to another form on a new page
- Limit front-end submitted posts by role
- No blocks available when adding a new post
- Recent Post Issue
- Extracting the permalink from a post instance
- How to add a block to a category page?
- why my wordpress post, created programmatically, not opening detail page & redirecting to index instead
- Posts page listing pages as well
- calling pages instead of posts
- wordpress display posts by terms id or name
- Maximum number of posts per page before affecting performance?
- Display post order ranking within wordpress loop
- Custom Taxonomy From Database
- Creating widget – ask for selecting a post in the admin panel
- Query post by meta key of another table
- Page and Posts loading as index page? Not loading the content
- Trash a post, send associated comments into the trash bin (change status)
- Trying to display stick or featured post on homepage
- Single post page from static home not working
- Get url/link to latest comments in a post
- How to change text (date) in post base on the day
- Post Attachment missing head (stylesheets/js/what-not)
- Print out one of 2 post category [closed]
- How to get if category has posts?
- Adding contents to my wordpress site
- Can`t Access Post Page After Migration