function wpse80148_filter_post_class( $classes ) {
if( is_home() || is_front_page() )
$classes[] = 'span4';
return $classes;
}
add_filter( 'post_class', 'wpse80148_filter_post_class' );
Related Posts:
- How to get Images included in Post
- How to know if get_posts() failed?
- How do I sort (order) the results from `get_children()`?
- how to display full post with pagination on home page
- Post & edit a post from front end along with upload, dropdown, and other inputs
- How do I change the gallery that is inserted in the post?
- Posts Page Featured Image [closed]
- Displaying Page Title on index.php
- How to enqueue scripts depending on post formats?
- How to Replace the WordPress Featured Image with a Video?
- Convert a complex webpage into WP theme
- How to load a different header based on post format?
- Changing next and previous post link text
- Understand post type
- Mark menu item as current-menu-item for category
- Understanding and using metaboxes in posts
- Why won’t my taxonomy query show up?
- Admin Notices don’t display on the admin screen for certain post
- Why orderby=”date” does not support manually changed posts?
- Static page does not show my posts
- I am unable to publish/update post
- page.php showing loop of posts and not page content
- Custom WordPress Theme: Publish Date and Display Date for posts right beside each other
- How to show single post page as home page
- Exclude category from
- Blog page not working
- How to display the link (title) and thumbnail post?
- Underscores Theme Unit Testing – Catching Untitled Posts
- get_the_excerpt() is not working as expected – returns wrong text
- How to use format post in a pertinent way
- Unable to restore from backup – how to obtain old blog posts?
- Disable sticky option for specific categories
- Highlight static blog page link in header
- How to create a template for Pages?
- How do I do a page break?
- Block editors annoying warnings
- What does WordPress do if I save a post without content/title? [duplicate]
- How to add a class to edit_post_link?
- Admin – no Featured image choice in create new/page|post
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- how to hide empty fields of post category description?
- Give posts a particular template based on the assigned category
- Display Featured Posts Grid on Static Page (Gazette)
- how to handle the loop using filling bootstrap grid structure?
- Cant’ Grab WordPress Built-in Posts Through Loop
- Change default post style to columns
- How do I allow certain users to make a certain type of post?
- I can’t find the relevant part of the loop in my theme file. How do I find the full content with “More…”
- WordPress Architecture as a CMS – Posts & Pages
- Am getting duplicate data from get_posts()
- Change modified date to current date when title updated automatically
- Add a field in my rest api
- Permanently deleted posts still exist
- created post displaying differently on front end
- Aligning images in the wp editor not working. How do i get this to work in custom theme?
- How to pull latest posts from a specific category
- Problem paginating a subquery on a post
- Moved a website and excerpts don’t work for old posts
- How to prevent clicking on posts
- How to get value of a selected option from select tag and use it in WP_query to filter posts?
- Integrate video and iframe in a post type gallery
- How to put the WordPress blog into theme
- Display post order ranking within wordpress loop
- Displaying a specific sub-category’s posts from wp_query
- Trim excerpt to first paragraph
- Posts only showing on /localhost/wordpress/ and not on other pages
- Post are not showing up
- Blog styling in SASS
- How to show the posts list into a static page? Problems to use the loop into a static page
- WP Load post with ajax and apply isotope
- Display the current post author and his url in the post header
- wordpress taxonomy results
- Which hooks are essential for post templates?
- Get most recent posts by category that aren’t first overall [duplicate]
- The post order is different for logged-in and non-logged-in users? [closed]
- How to show only the date, the title and a little “summary” of my WordPress post in my custom theme?
- Convert HTML5 to WordPress theme
- Change from all posts to specific categories post on main page?
- Wp_query WooCommerce products
- Get posts after calculating meta key
- No matching template found when using single.php
- Is there a block to print post link standalone in a block theme?
- WordPress Ajax load doesn’t work
- Set Default Listing “View” in Admin
- How do I use element instead of tags in WordPress post content having webP support?
- Pagination on single post page?
- Get posts of ONE taxonomy term of custom post type
- WordPress Custom Fields (Checkboxes with multiple values)
- How can I pass the ID of a post to a page template by clicking a url?
- Whitelist Author of Private Post
- How do I extract just the post ID of the first item in whatever WP_Query returns?
- Sort Custom Post Type by Category ID then Post Name
- get_previous_post() while accounting for sticky posts
- If post does not exist, do something
- Using the loop to set locations for all posts on a single google map
- Get post slug and match with menu item slug to change css
- Embedding Facebook in blog post not working
- How to list all names and descriptions of a custom taxonomy
- Post List Widget with custom posts and editing the Read More Link
- WordPress Media URLs?