Custom Tag Cloud widget missing tags

What tags/terms/taxons do you get? The the_tags( $before = null, $sep = ‘, ‘, $after=”” ) function is a wrapper for get_the_tag_list( $before=””, $sep = ”, $after=””, $id = 0 ). This function applies the filter the_tags on the get_the_term_list( 0, ‘post_tag’, $before=””, $sep = ”, $after=”” ) (0 is the $id and $post_tag the … Read more

Creating a one click demo importer

I believe that if you are not going to do a massive sql insert (which I think is likely just as efficient) that you need to go ahead and utilize the plugin api and at the time of the button being pressed, create them. I think it’s pretty clear your choice is either to create … Read more

add_page_menu to make shortcut to widgets

You can add a link to the widgets.php like that: add_action( ‘admin_menu’, ‘f711_add_widgets_shortcut’, 999 ); function f711_add_widgets_shortcut() { add_menu_page( ‘Widgets’, ‘Widgets’, ‘publish_pages’, ‘widgets.php’, ”, ”, 61 ); } Be sure to check your permission settings, and you may also include another image. You can find the documentation about the function at The Codex.

dynamic_sidebar() returns false in admin section

Yes, you have to make sure to hook this function at some point after the sidebars are registered. It’s not quite explained, but implied in the codex that this function dynamic_sidebar( $index ) expects them to be registered and loaded as registered by the time it runs. Otherwise, it won’t have anything to match the … Read more

How to add a class to a link in text editor

You can use third party free WordPress plugin “Extend Link“. You can activate this plugin and add extend link as shown in below screenshot. Now when you click on “Extend Link”, you will see the popup similar to default link popup but with an additional option to add IDs, Class and Rel. https://wordpress.org/plugins/extend-link/ Please let … Read more

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