Even/Odd every two posts

Your code, while looking like it could be every other, is based on math, so it will be even and odds as the query goes by iterations counting up. modulus 2 == 0 means even numbers in this sense (iteration / 2 has no remainder has to be an even number) If you’re looking to … Read more

How to customize posts in WordPress by using HTML and CSS?

the first thing you need to do is implementing the html template you desire to something that called wordpress template hierarchy is good to start with blank wordpress theme like underscores.me, so you can freely custom your own template so, after your files is ready, you can learn about wordpress theme customizer im giving you … Read more

Plugin to display text before a post

smraj, try to use a filter. Use this code snippet. Place this in our theme’s functions.php file add_filter(‘the_content’, ‘adddata’); function adddata($content) { $pre_post_text=”Welcome to my post!……….”; // only display this on single post pages if(is_single() && !is_home()) { $content = $pre_post_text.$content; } return $content; }

Change a div background color on Post ID

This may not solve the problem necessary because there may be other rules in your theme that have higher specificity and will overrule your selectors but You need to combine the selector together, like so: .postid-6238.inside-article { background-color: #393939; } That selector will choose for all elements that have BOTH the classes .postid-6238 and .inside-article … Read more