Hot answers tagged

1

It looks that this code is very old. Function wp_start() is deprecated since WordPress 1.5 (Documentation). But you wanted to know how it code is counting so: $posts = get_posts('numberposts=6&offset=0'); - get 6 posts foreach ($posts as $post) : - iterate over each post static $count1 = 0; - initializes $count1 variable $count1++; - increase counter ...


1

If you have deactivated the first one you should be able to use the new one without any hassle. When the plugin deactivated, WP core don't call any of it function or doesn't use any thing else from it. But if you activated both of them then it can cause function re-declaration etc.


1

At first glance, that should just work, as long as you've flushed your rewrite rules. You can do that by going into the settings and saving permalinks again.



Only top voted, non community-wiki answers of a minimum length are eligible