Widget does not work with WooCommerce enabled

Woocommerce already has a widget called best_sellers, which is conflicting with the name you’re using, and it’s making your widget use the Woocommerce widget update function. Since that one also has a field called title, that field is still saving. Add in a prefix to best_sellers in your construct function to fix the problem: public … Read more

Find and replace weird characters in the_content [closed]

You could try this: <?php function replace_content($content) { $search = array(‘&’, ‘é’, ‘—’, ‘‘’, ‘’’, ‘“’, ‘”’); $replace = array(‘&’, ‘é’, ‘—’, ‘‘’, ‘’’, ‘“’, ‘”’); $content = str_replace($search, $replace, $content); return $content; } ?> Credit to Harry on WordPress forums

is this code properly secured

Yes, this seems to be appropriate use of insert() method, which does call prepare() method on data internally. Note that %s is considered to be default for it and can simply be omitted, if no other data and formats are involved.

How we add tabs in plugin page

If you are looking to add tabs in admin page then you can try doing this: <h3 class=”nav-tab-wrapper”> <a class=”nav-tab nav-tab-active” href=”#”>Test1</a> <a class=”nav-tab” href=”#”>Test2</a> <a class=”nav-tab” href=”#”>Test3</a> <a class=”nav-tab” href=”#”>Test4</a> <a class=”nav-tab” href=”#”>Test5</a> <a class=”nav-tab” href=”#”>Test6</a> </h3> this will give you native look and feel

how to apply Pagination on post

A siple search on google got me to these websites: http://codex.wordpress.org/Function_Reference/paginate_links https://codex.wordpress.org/Pagination These are WordPress Tutorials for setting pagination. You can also install a plugin, I recommend WP PageNavi. http://wordpress.org/plugins/wp-pagenavi/

Print child category slug nicename

seems nobody understood ‘my question’, so I solved it myself here is the code for getting the slug I needed <?php $cat = get_term_by(‘name’, single_cat_title(”,false), ‘category’); echo $cat->slug; ?>

TGM plugin error in Theme Check Plugin

Concerning your question: Can my theme be submitted for approval with these errors? I’m assuming you’re asking whether your plugin, while throwing an error upon activation using TGM library, can still be submitted and accepted to official WordPress repository. My answer would be, no, it cannot. It seems like you made your plugin work once … Read more