Where can I sell WordPress themes and plugins? [closed]

here is a nice brake down for you: MarketPlaces Themes: Theme Forest – Probably the biggest theme marketplace by Evanto. Rates: New authors begin at the 50%. Templamatic – Rates: between 50% and 70%. BuyStockDesign – Rates: Start from 50% to 75%. BuySellWordpress – Rates: Starts from 50% and may go up to 70%. WPmart … Read more

How to Display Product specific to a category with WooCommerce Plugin? [closed]

You need to create a new loop for that. Here’s the code I use for displaying products from a specific category on the home page: <ul class=”products”> <?php $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 1, ‘product_cat’ => ‘shoes’, ‘orderby’ => ‘rand’ ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : … Read more

List all sidebar names?

Loop through the global: <select> <?php foreach ( $GLOBALS[‘wp_registered_sidebars’] as $sidebar ) { ?> <option value=”<?php echo ucwords( $sidebar[‘id’] ); ?>”> <?php echo ucwords( $sidebar[‘name’] ); ?> </option> <?php } ?> </select> Note: The ucwords() function is only there to display it exactly as you asked. Not sure if you really want that. How to … Read more

How to load wp_editor via AJAX

The main problem are the missing scripts. The scripts enqueued in _WP_Editors::enqueue_scripts() are never printed. The same is true for _WP_Editors::editor_js(). So you have to do that in your AJAX callback handler. I have written a demo plugin and put it on GitHub: T5 AJAX Editor. There is one class named Ajax_Editor. Its method render() … Read more

Registering Class methods as hook callbacks

If I need to register an action inside the class itself would it work with array($this, ‘bar’)? Yes, it works. $thisDocs is referring to the concrete instance needed for the callback. That’s exactly like the $foo example you give. It’s just that $this is bit more special, but it represents basically the same and it … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)