The post_class()
function can be used in the loop to automatically output some classes that you can target via CSS. Post types will have the class type-[post-type]
.
How that might integrate with Elementor is unfortunately something you will need to ask via Elementor’s support channels, as 3rd-party plugins and themes are off-topic here.
Related Posts:
- Should we trust the post globals?
- How to know if get_posts() failed?
- Duplicate posts
- Looping through posts per category gives same posts for each category
- How to show posts rank based on custom field value
- How do I create Comma Separated list of attached image ids?
- Should ‘setup_postdata()’ be reset with ‘wp_reset_postdata()’?
- Hide add new page button
- How can I get all posts data from within a paginated search result?
- How To Keep Posts from Being Displayed Two or More Times on My Homepage? [closed]
- Check if post exists
- Sorting posts according to view counts not working
- Latest 5 posts (custom post type), each post different CSS
- Only display posts after current date
- Improving WP_Query for performance when random posts are ordered
- WP_Query Authors OR Categories
- do_shortcode within post query
- Query get post,how to add comment box
- CSS: How can I show a photo beyond the template’s column, but contained within the browser window? [closed]
- Can I search posts and pages for css classes?
- get query() without post content?
- How can I setup a relationship using categories in WordPress?
- Exclude the first ‘n’ number of posts of a tag from home page?
- posts_per_page option limits the number of Gallery items
- How i can limit period of post publication?
- Is there a way to specify an extra class for a post or page with no title?
- How to remove in-line style of WordPress’s post content only?
- Exclude current custom post on single post
- Dynamically switch template on click
- Get all custom post types excepted some…
- Get all comments of author’s posts
- Why Query is returning empty array?
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- meta_value timestamp older than now
- Counter is skipping post when I still want it visible [closed]
- Every second post different class in blog view
- Do not show children of a category
- Make a vertical dynamic list of posts in alphabetically order and in columns [closed]
- How to make different custom post layouts?
- How to get all post_parents of a post?
- Query for first 3 posts to change the look and feel
- Query posts and filter at query time by value of custom meta
- Run query_posts if SESSION is empty?
- Very complex post query
- Delete post revisions only for a single post
- How to give classname to post if post has no content?
- Exclude some posts from displaying in wp_query based on some condition
- My Custom Post Type Still Using index.php
- How to retrieve certain number of images from a wordpress post?
- add div after image in post [closed]
- How do I switch css class on post
- How to convert query sql to shortcode in wordpress?
- Some doubts about how the loop work (trying debugging it)
- Adjust the order for returned posts
- get last post’s link with SQL query
- How to separate each individual blog post?
- Trim posts from WP-Query?
- Locally change the font family [closed]
- YARPP php question
- Right align a youtube video
- How do I apply a template to my single posts?
- Trying to exclude custom posts based on date, while sorting by custom field
- How to allow arbitrary inline CSS in posts?
- how to add tags to post in the Loop?
- Merge get_comments & get_posts into a single query
- How to optimize posts query in wordpress
- How to fetch courses in all languages in WordPress?
- How to highlight or show new to the particular posts list
- Css and function issue on author archive page
- WordPress Recent Post with the badge “New” on the side of the title post
- How to search through “post title” and “tags” using WP_Query?
- Need to display a Jan 1st post as the site’s front page on Jan 1st, and Jan 2nd post as front page on Jan 2nd etc
- Bulk Post update_post_meta
- Show 5 posts and than 3 posts offset with pagination
- How to delete all posts with dead image urls?
- Numbering author posts in posts query
- How to run select query of post with category and tags?
- Querying posts from current category, using a variable as array argument
- Query posts from newest category
- How can I alternate styling of images in a post? [closed]
- Custom Select Query pagination not working properly
- Query post by meta key of another table
- Sort / Filter Queries
- Display the latest post from some selected authors
- Ordering posts alphabetically by meta keys and title
- Why I have this strange behavior when I try to exlude the featured post from posts visualization?
- Background image in posts
- Grab next post title in archive page
- Continuous listing from a custom field
- Displaying Results From Custom Taxonomy Query
- How to store post rating system data post independent?
- Get first comment link on the post itself
- Make division in post_query?
- How to limit post query to only return a total count of items with certain post statuses?
- Display one post randomly from category on home page
- Change a div background color on Post ID
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- Change permalinks in posts via SQL
- I am using the query block and what I want and see on the editor page is not the same with the actual results
- Batch Scanning and Deleting Empty WordPress Posts