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:
- How to limit the number of posts that WP_Query gets?
- Should we trust the post globals?
- Random sort within an already sorted query
- Is it possible to bold certain words in a post title?
- how to get a different html for odd/even posts?
- How to know if get_posts() failed?
- Is this the best (and only) option to style CSS for a given post type?
- Using $wpdb to query posts with meta value containing current post_id
- Query posts from current year
- WordPress Number of Posts Not Changing With posts_per_page
- adding a custom css class to post
- I have over 4000 posts, will querying some of them cause performance issues?
- 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?
- How to add posts to wp_query result?
- Trying to put an array into ‘post__in’ => array() query not working
- Custom colors for post rows based on post meta value
- Order post by year DESC and month ASC
- Should ‘setup_postdata()’ be reset with ‘wp_reset_postdata()’?
- How can I display a specific user’s first published post?
- Query All users that has post
- How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?
- Hide add new page button
- wp_enqueue_media() slows down my WP site
- Limit function to specific post category
- How can I get all posts data from within a paginated search result?
- Search query – exact post title match
- How To Keep Posts from Being Displayed Two or More Times on My Homepage? [closed]
- Sorting posts alphabetical that have single digits
- Query posts from different categories in multisite
- Check if post exists
- posts_per_page doesnt work
- Sorting posts according to view counts not working
- Latest 5 posts (custom post type), each post different CSS
- Display page content AFTER a loop of posts
- Only display posts after current date
- Get posts by multiple ID’s (query)
- How to start with post number x?
- Exclude posts with empty post_content in wp_query
- Only display a certain number of posts, dependent on how many posts there are available in a query
- WordPress Theory Lesson – Image Columns within posts with alignment?
- Improving WP_Query for performance when random posts are ordered
- How to style the last post on the front page different than the others?
- Should $found_posts be returned as string in ‘found_posts’ filter hook?
- Add a class to post title if a link ends with a certain extension
- Copying and pasting emoji in a wordpress post
- Query how many items to show in shortcode
- Get posts by name and taxonomy term
- WP_Query Authors OR Categories
- Get Posts that are in the current month or later
- Sticky post appears twice
- do_shortcode within post query
- How Can I Query a Specific Page From a MultiPage paginated Post
- Get Meta Key Value While Saving Post
- Most liked page not displaying posts
- Style Differently Edited Posts
- Query get post,how to add comment box
- How to make classes for posts?
- CSS: How can I show a photo beyond the template’s column, but contained within the browser window? [closed]
- filter RSS feed in URL
- WordPress custom Query for Posts in Category display posts multiple times
- Making a custom Pagination for multi page blog post
- 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?
- How to add tags (custom taxonomy) to post class css?
- posts_per_page option limits the number of Gallery items
- How i can limit period of post publication?
- How to setup a query to output posts by groups of five?
- 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
- How to get posts and comments amount per hour, per year and per month?
- Get all custom post types excepted some…
- Get all comments of author’s posts
- First x post with another template then the others
- Why Query is returning empty array?
- Delete all drafts?
- Grid post page on WordPress with Bootstrap, the_excerpt(); Problem
- Wrap every month posts in div
- 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]
- post__in not working with pre_get_posts, but post__not_in does work
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- Display posts with id equal to relationship value
- Sort Posts Alphabetically Based on Specific Category (Divi)
- 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
- posts blocks don’t show up correctly
- Add a category to posts, that DO NOT contain two specific keywords?
- How to make WP_Query faster when getting a post from one year ago?