Category Archives: Hacks

How to borrow a post, or another way to create a virtual WordPress page on fly with the active theme used

I build a new plugin recently, and was need to show a page with my custom message. The stickt need was to be used the active theme, and the same way how WP itself use it. This is because plugin … Continue reading

Posted in Blog, Hacks | Tagged , , , , , , | Leave a comment

Best task/bug description

I can not know your site “like my palm”, even I try hard. Also I can not remember every site I work in. And I can not read inside your head. So please do detailed descriptions. Understanding how to explain … Continue reading

Posted in Blog, Hacks | Leave a comment

The anticrawler.org phenomenons

Today in my logs I see the site anticrawler.org at “incoming” list. Well, people come to me from search engines and specific sites, usually, the single click from unknown site catch my eye. I get to this URL, and see … Continue reading

Posted in Blog, Hacks | Leave a comment

How to place Login/Logout link in submenus of WordPress

Sometimes you need to place a Login/Logout link in your site’s menu. Even deep in submenus. So I will show you how to do that. This is an universal (for custom menus) way. First you must find where your menu … Continue reading

Posted in Blog, Hacks | Leave a comment

How to set jQuery plugin perfect-scrollbar

Today I had problems with the perfect-scrollbar jQuery plugin. I have to fix it in a WordPress page, whose content has to scroll as a block. It works well with text, but crashes when a “ol”, “ul” or “table” HTML … Continue reading

Posted in Blog, Hacks | Leave a comment

“Nivo slider” v1.9 quick fix

“Nivo slider” is a good plugin for slideshow, but the version 1.9, upgraded today, comes with a bug – it shows a message: Warning: array_key_exists() [function.array-key-exists]: The second argument should be either an array or an object in /homepages/19/d395780486/htdocs/wp-content/plugins/nivo-slider/nivo-slider.php on … Continue reading

Posted in Blog, Hacks | Leave a comment

How to add custom post types to your main WordPress RSS feed

Here and there is described how to add custom post types to WordPress RSS feed, but none ways works for me with WP 3.5.1, so I was need to create a new one. Difference is with more sophistical check for … Continue reading

Posted in Blog, Hacks | Leave a comment

Hack the “Debug Bar”, “Debug Bar Action Hooks” and “Kint Debugger” plugins

I try to trace execution of a plugin in WordPress, so I install several developer’s plugins: “Developer”, “Debug Bar”, “Debug Bar Transients”, “Debug Bar Action Hooks”, “Kint Debugger”. Then I try to show a variable in the “Kint Debugger”, but … Continue reading

Posted in Blog, Hacks | Leave a comment

Hack the maximum execution time in WordPress

Today I find a problem: time ends… Well, for a WordPress plugin only, the KC S2M+MC one. I mean I got “Maximum execution time of 60 seconds exceeded” error, when I run a long operation (synchronizing members in Mailchimp list … Continue reading

Posted in Blog, Hacks | Tagged , , , , | Leave a comment

Hack the WordPress AJAX procedure…

Here I describe an unusual way to use AJAX inside WordPress, by usual “admin-ajax.php” URL. Usually we run AJAX in WordPress with following code: add_action(‘wp_ajax_mp_my_action’, ‘my_action’); add_action(‘wp_ajax_nopriv_my_action’, ‘my_action’); function my_action() { … } Then we fire it with GET query … Continue reading

Posted in Blog, Hacks | Tagged , | Leave a comment