After taking a look to themes code I realized that all those html parts I wanted where hardcoded on the themes files, so there wasn’t any nice way to retrieve those chunks of html
I followed Strap1 comment and enabled my plugin to override my template, otherwise I parse the file page.php from the theme, to extract the html I need, using the function token_get_all().
Related Posts:
- How do I query a custom post type with a custom taxonomy?
- what is the correct way to compare dates in a WP query_posts meta_query
- How to get post content by calling ajax?
- How to show all posts of the category in wordpress?
- Get the ID of the latest post
- Using meta_query, how can i filter by a custom field and order by another one?
- Return all custom meta data for one custom post type
- Display a query with multiple post types and same relationship on a single page
- Fail to compare dates in meta_query
- How to filter custom posts by tags and custom fields?
- Order by & include array by specific post ids
- How to call a custom post with get_posts() instead of query_posts()?
- How to completely disable a taxonomy archive on the frontend?
- Custom post type archive 404’s with paginate_links
- Display Custom Post Type Fields
- Querying custom posts and regular posts
- Why is get_post_format() for “Standard” returns empty
- Custom post types and child theme
- Loading Custom Post Type Events into jQuery-based FullCalendar?
- Limit the post for differents custom post type in the same wp_query
- Password-protect a custom rss feed
- Retrieving 3 latest post from each of 5 different custom post types
- How to hook get_terms() to only show count of posts that have custom meta
- Using Offset in Custom Post Type Query
- how to group custom post type posts by custom taxonomy terms
- order by meta_value serialized array
- Posts per Page on custom Taxonomy Template
- White screen error for a custom theme
- How to override parent theme function through the child theme [closed]
- Using Query Posts With Multiple Post Types And A Taxonomy
- How to get the parent’s taxonomy?
- Loading post content in FancyBox
- Query posts by custom post type and custom taxonomy
- Single Page WordPress CSS and JS links
- Multiple templates for custom post type
- Query post types with multiple keys
- ascending order custom post type
- posts_nav_link on single post template
- Group Custom Posts Types in a Relation field of ACF
- Use WP pagination functions on a custom page template
- I can not call the categories of custom post type
- Can I show some specific post rather than latest post?
- Getting Custom Posts with Custom Taxonomy
- Query the title of the page to show posts with matching category in the loop
- update a posts of other custom post type
- How to Create movie schedule by custom post type query
- How do I get the posts from single page custom post type from a sidebar to display in a page?
- Main site single-property.php design, as homepage of a multisite
- Change Background Color For CPT Template
- WordPress add taxonomies/terms list as a menu in archive page
- Adding CPT changes entire layout of my site except for the archive of that CPT
- How to set class to “current-page” on the currently viewed single post within a CPT
- Imported Content Doesnt Show Up On Frontend
- Optimise custom post type queries
- getting a blank login page :( any way I can fix this without having to do a clean install?
- WordPress custom post type
- How to get Last post Id of custom post type in wordpress
- erase post excerpt limitation [×]
- Display 2nd category, only once, as sub-heading, in the loop
- WordPress custom post type queries
- display news with pictures 3 small and one large (loop)
- How to get $post object available inside functions.php to localize script?
- Query custom post type and showing its content
- Filter RSS feed for custom post type to events for next 7 days only
- Using $seed on a custom post type for randomly displayed posts
- query_post causes the posts to be loaded twice on load more posts
- Query Distinct Taxonomies of Custom Post Type
- Custom Query With Multiple Meta Key Value
- Ordering custom post type by custom field without a title
- Custom post type blog pagination conflict
- How can I list custom post by custom category?
- Query Posts From Multiple Post Types
- Return only custom post types for the page, not all
- Advanced Custom Fields: query posts filtered by multiple field values
- Problems with a custom meta_box
- Create custom post order (with custom post type meta)
- WP Build-In Post selector for CPT
- Query by post type or category
- What’s the best way to show custom post types? With page template it’s not perfect!
- How to apply order on custom taxonomy and custom meta key on custom post type
- Change position of Post Formats box?
- send user to first page of results when reposting to page?
- How to grab data (titles, thumbnails and custom fields) from multiple posts to populate a new array efficiently?
- Query custom type posts by array of IDs
- Inserting two categories
- How do I correctly query posts from a post ID?
- How to exclude certain portfolios from a loop
- How to manage wordpress knowledge base/wiki/posts collections
- Render a loop in Timber (twig for WordPress)
- show custom post’s post in two different divs [duplicate]
- How to get ‘Products’ on home page?
- How to get Custom post type by related category ID
- Trying to set up a range filter for related custom post types
- Quering array of post types & pagination. Articles are repeating sometimes on different pages
- how to display custom taxonomies in front page
- Display ACF object field data using Elementor Custom Query
- REQUIRED: The theme uses the register_post_type() function, which is plugin-territory
- Assign a tag to custom post type using a query
- How can I produce multiple webpages with a different output based on one entry/Page/custom Page?
- WordPress commercial theme cancels default functionality