Multiple post classes should be separated by a single space or should be in an array.
post_class("$even_odd $current_post $current_in_total");
Or
post_class(array($even_odd, $current_post, $current_in_total));
Related Posts:
- How to mark every 3rd post
- adding a custom css class to post
- Odd/even class on article tag
- How to add padding between posts
- Add Post Tags to Body Class
- Add a class to post title if a link ends with a certain extension
- How to make classes for posts?
- Every second post different class in blog view
- How can I add a class to particular paragraphs in my post?
- Microformats in a single post – layout conflict
- wordpress add field to post_class
- How to mark every 3rd post
- How to Change Order of Posts in Admin?
- How to Display Network Post Count?
- How to disable content pagination?
- How to add/assign or change featured image in post programmatically?
- WP-CLI Bulk delete posts from specific category
- Update all posts automatically when using post_meta
- Categories box not showing on post edit pages
- Exclude ALL posts from sub categories
- Post ids are incrementing by an unknown number?
- Removing the title attribute from links in the post content
- Can’t show comments count per post outside loop
- Redirect based on user post count
- Custom function for “Submit for Review” hook
- Should our pages be posts?
- Allow role to delete posts but block him the wp-admin
- If specific user role then sticky post
- Link post permalinks to subdirectory /post
- How do I add a custom body class to the admin area of a page?
- Remove the Edit button in posts for permalinks on certain user roles? WP 3.3
- Can’t get the_content of the parent page from its single post?
- How do I Show ALL posts for Catagories and Tags?
- Get the most repeated post contents from a search?
- pre_get_posts query between 2 dates (date stored in custom post meta)
- Classic editor throws 403 error based on post content
- How to build a site with a map that shows where people offer and need help?
- Get the number of posts shown in the current page
- Get all attachment by post excluding featured and content inside
- Post categories to pages
- Fix existing media names with accents
- Any way for get_next_post() to use the actual post order instead of publish order?
- If in_category not working for multiple single.php pages
- How to display excerpt post on hamepage and archive pages?
- display random posts on index.php instead of latest
- Automatically Import WordPress Blog to Facebook Page [closed]
- Worpdress function for difference dates
- Only show a Post once in 10 visits
- Display post changelog in post
- Why Query is returning empty array?
- meta_value timestamp older than now
- All Posts Linking to Author Posts directly
- Total number of posts in query (category/tag/author/search results/main page…)
- search blog posts by author first name and or last name
- Make loop inside slider divisible [closed]
- How to add convenient buttons for new custom post statuses
- Change the number of excerpts displayed in search results layout
- Database hacked – random posts are modified
- Getting Whitescreen when publishing a post [closed]
- Display value of custom field at the beginning of a post
- How to display post list in a table layout (multiple queries in single loop)
- add div after image in post [closed]
- How do I link a Post Type to a Template in Masterplan?
- Post is in descendant category not working in home.php
- How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?
- Get content from WordPress posts in Boostrap modal window – Javascript side?
- How can my plugin display a populated new post window
- Where is the “Posts”/”Blog” template?
- How to get posts ordered by using their categories?
- How to show beneath posts the full category path?
- How to assign a post to a post parrent?
- How to get value in radio input in post meta box?
- Bulk update published posts date randomly using wp-cli?
- ACF date picker to trigger category change
- How to insert custom text after H1 to all my blog posts?
- wordpress admin missing Posts button
- SQL query: select duplicate posts – but using duplicate meta [duplicate]
- Sync All Post Type Tag
- post and page and custom post type
- How can I use query_posts to loop through posts and construct my own content?
- how to redirect page after delete post inside a post page?
- Permalink base only for posts
- If I moved the location of my generic “posts” page, do I need to change the slugs for all of the individual posts?
- issue in wordpress auto delete post and redirect to another 1
- Custom fields in normal posts
- Modify WordPress loop after it has been run
- How to get next_posts_link working with a customised page
- Loop doesn’t display posts. It displays a link to the home page instead
- Why I have this strange behavior when I try to exlude the featured post from posts visualization?
- Super post cleaner, could this be category specific?
- How to organise post by category and date
- Get current post’s child page?
- How to include Related Posts in WP RSS feed
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- Show all posts in category
- Creating a new Sortable Column in WordPress Admin
- Hide the contents for specific post
- Display post structure in function
- How to show video from post on the all posts page?
- Show a page counter for pagination