Are you like me, curious about difference of is_home() and is_front_page()

Usually i m not care about this, because usually i m using both function to detect if current pages is homepage or not. so it will not make a problem. But i m facing problem since using Thesis theme that use page as Blog container – displaying post in page.

I want to display specific widget just for blog page using is_page(‘blog’), is_page(‘page_id’) but still no luck..Finally i m using is_home and it’s working :) How it could be happen?

  • is_home(): is working if you select a static Page ->   “posts page”.
  • is_front_page(): general use function to check if current page is homepage.

if you set both, the “post page” will display latest post from all category and “front page” will be homepage.

Batch cat plugin is very useful plugin for webmaster that has many post in their wordpress blog.

Since WordPress 3.1 You will find that Batch Cat Plugin not working.

when we assign post to category it will raise error “Please select at least one post !’” Or “Please select at least one Category !’”

I try to find the solution in google, but with no luck.

So i decide to make fix for it :) , – I m kind of smart lazy programmer :D

 

Finally i found the problem is in jquery selector. Latest jQuery selector has changed

Ok. Here is the fix.

1. Open batch-cat.js

2. Go to function bcat_get_posts() and function bcat_get_cats()

3. Change current line

 

var posts = $('input:checkbox:checked[name="postid[]"]');

To

var posts = $('input:checkbox[name="postid[]"]:checked');

4. and also make change below line too

var posts = $('input:checkbox:checked[name="catid[]"]');

To

var cats = $('input:checkbox[name="catid[]"]:checked');

and Viola Its working Now :)

 

source from my 1st blog

About this blog

Don't complain about my English, i m Indonesian blogger. Thanks for coming to my blog
CoLiq

Categories

Archives

Recent Comments