Finally, I had to add the required code inside another shorcode I had in place to create the content structure. That way I avoided creating an extra shorcode and was able to put the custom code in the exact position I wanted.
Thanks to all those who helped.
Related Posts:
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- Filter Posts By Tag
- Filter Custom Post Type by Category with Ajax
- How to allow visitors to filter posts by multiple taxonomies
- Trying to exclude custom posts based on date, while sorting by custom field
- How to add a custom class attribute into code wrapper? [duplicate]
- Remove Categories / Tags From Admin Menu
- Setting Custom Sort Order of Posts within a Category
- Custom permalink structure only for default posts
- Exclude drafts in all() view of edit.php
- How to publish a post with empty title and empty content?
- How to add a “publish” link to the quick actions
- Is this the best (and only) option to style CSS for a given post type?
- How to change the layout and styling of posts according to their category in WordPress?
- Why is wordpress removing some unicode characters (e.g. some emojis) when I save my post?
- adding a custom css class to post
- Prevent duplicate posts in wp_insert_post using custom fields
- Add default content to post (for specific category)
- Pagination not working on Custom Page Template
- Display custom post types by date field
- How to hook a function only when I need to delete permanently a post?
- display order of connections
- same template for multiple custom post type single
- How to place HTML below the title of the (custom) post overview
- How to get a nofication when post submitted
- Is there any WordPress alternative to Book module of Drupal?
- .current-menu-item class on custom post type children pages – again?
- Getting post id from wp_insert_post_data function?
- Display page content AFTER a loop of posts
- Run a function when post is deleted?
- How to start with post number x?
- How can I create custom button in post.php
- Amend wordpress password function
- how to replace embedded “full” sized images within a post with the “large” ones
- Downgrade user from role that allows post creation
- Best way of deletion of old posts [closed]
- Animated gif for a thumbs
- Sidebar links for different pages
- Deleted category by mistake, all posts now have categorized category. Can i revert that?
- I am unable to publish/update post
- Delete post by giving its link
- Get posts of ONE taxonomy term of custom post type
- WordPress Custom Fields (Checkboxes with multiple values)
- How to make classes for posts?
- Custom Post Archive Page not working
- Adding buttons to Add New Post and Add New Page
- Default to ‘all’ view on the ‘edit-post’ screen for authors
- Getting Custom Post Loop to display in Bootstrap 3 column grid
- WordPress custom Query for Posts in Category display posts multiple times
- Editing the default page to show all posts, rather than most recent ones
- Automatically add date to the auto generation of post slug
- How could I change my Permalink from blog to custom structure? [closed]
- WP Admin register taxonomy and post type performance
- Add a custom meta box in the post options that loads some html code in the header
- Static posts page with home.php
- Custom post types related to same custom post type?
- relating business and products with custom taxonomy?
- Using setup_postdata() with multi-dimensional array
- Check if a custom post type has already been created
- WordPress Query Posts From Category Post on Static Page
- Edit multiple custom post types while saving a new or edited post
- How to allow multiple thumbnail upload for Posts?
- add external project to web site wordpress on production
- Delete post from admin but not from database
- Organization of time insensitive content
- Custom Select Query – Selecting the Year?
- How to output all taxonomy links from a custom post type in a menu?
- Can I style single post that are in multiple catergories?
- Rewrite image links from attachment id to attachment link
- the wp_post_update isn’t working all the time
- How to create custom search form function including post “tags”
- how to filter posts by category without page load (ajax) in wordpress?
- Remove status ‘archived’ from the default post and page view
- How to invoke a HTML custom button based on a HTML dropdownlist menu
- long-title posts do not want published
- Please I want to prefix my WP posts title according to each category
- How do i search post by jquery datepicker?
- insert post fails after multiple postings
- Manual Scheduler For Custom Post Type
- Custom Post Type Rewrite URL
- Dev and prod on the same database- dev version active for IOS
- Custom Post Types and Broken Permalinks
- The first post appears twice
- Prevent WordPress from putting around specific element
- Append a random string to a post permalink
- single- and archive- templates not being applied to custom post types, not even after flushing permalinks
- Show Posts By Custom Field
- Add review box by function at top or bottom of content
- Custom Post Type doesn’t use single.php or single-{custom_post_type}.php
- How can I have the posts from one word press blog show on the presentation page of another word press site
- Customize search results to include custom posts and display in a specific template page
- Custom permalink based on custom post type fields
- Show a Category Specific Info Box
- How to use in_category?
- Make a custom URL and link to custom Template
- Special Query: Title, Terms, Content – %LIKE%
- First Custom Post Custom Fields Empty After New Custom Post
- WordPress 3.2 – Problem with WYSIWYG editors in a custom post type?
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields