Articles of plugins

WordPress converting my code

I am having difficulty with WordPress continually changing my code on me. IE: FROM THIS: <script type=”text/javascript” src=”<?php echo get_stylesheet_directory_uri(); ?>/js/swfobject.js” ></script> TO: <script src=”&lt;?php echo get_stylesheet_directory_uri(); ?” type=”text/javascript”>// <![CDATA[ /js/swfobject.js” > // ]]></script> And it’s driving me crazy… is there anyway to disable this from happening? I will be having other people edit these […]

Why none of the plugins that have ajax doesn't work in my website?

This is my website. I installed many plugins but if a plugin have ajax, then it doesn’t work in main page. can anybody help me?!?

Adding Plugin-specific Fields with wp_insert_post()?

(Moderator’s note: The original title was “wp_insert_post() and plugins“) I use wp_insert_post() like this: $my_post = array( ‘post_title’ => ‘title’, ‘post_content’ => $post, ‘post_status’ => ‘publish’, ‘post_author’ => 1, ‘post_date’ => date(‘Y-m-d H:i:s’, $oldtime), ‘post_category’ => array(3,4) ); wp_insert_post( $my_post ); Everything works fine, but I want to use plugins like “All in One SEO […]

How to write one comment and publish on every post using database or plugin?

I have about 500 posts published in WordPress now I want to add one same comment on every post. How to do the by the database. I search about it, but not a good luck. thanks in advance for the help.

How to restrict an entire WordPress site to visitors, but the register and login page?

Restrict Website, But Login and Register Page I want my my entire WordPress site to be restricted to visitors, but I want the register and login page to be accessible (not restricted) to the visitors Since my website is a members-only website, I want to restrict it’s access so that visitors only see 2 pages, […]

MarketPress vs. other WP ecommerce solutions

What experiences have you had with MarketPress vs. other WP ecommerce solutions? I found a client that wants to use it and I never worked with it before. How does it compare with WooCommerce or WP e-Commerce? Or does anyone know of a good and recent comparison of WordPress ecommerce solutions? …everything I find on […]

How to get the “stats” plugin that comes with a blog?

On the free version of wordpress, ie the one you setup for free and get hosted at “”, it has a very nice module on the dashboard for tracking statistics. It displays a nice hit-counter graph and shows search engine terms used etc, without any clutter Is it possible to get this for a self […]

Force plugin to fail activation

I’m writing a plugin that will be using custom fields added by a theme. Because of this, it would be ideal if my plugin not be able to activate should these fields not exist. How do I go about displaying an error and forcing the activation to fail?

how to retrieve wordpress event manager plugin's event detail using php?

I want to retrieve and display event details (WordPress events manager plugin) using PHP same as we do the_content(), the_excerpt(), the_title() for simple posts. How can I do the same with events manager plugin details like event_start_date, event_ending_date, event_name, event_time and etc.

Getting Post details when post is published

I would like to collect main info about post like Title etc. in moment when post was written and it’s going to be published and perform some actions on this data. What’s the hook for that? Thanks!