Category: WordPress

Things I like to do to WordPress...

Cool Widgets for WordPress Sites

Perfect way to allow others to use your content or you can use to place an ad on your own site. It really does not have to be a WordPress site! Here is the widget source that we will call hello-world.php: <div style=" display:table; border:3px solid #ccc; border-radius:.5em; padding:.5em; margin:0 auto;"> We say: <?php echo "Hello World"; ?> </div> To deliver the above content,

WordPress use PHP & JavaScript in Widgets

Resolve adding the following code to the WordPress theme function.php file. HIGHLY recommend creating a child theme and using functions.php from that theme. add_filter('widget_text','execute_php',100); function execute_php($html){ if(strpos($html,"<"."?php")!==false){ ob_start(); eval("?".">".$html); $html=ob_get_contents(); ob_end_clean(); } return $html; } To enable shortcodes in the Text

Changing WordPress Admin Password From PhpMyAdmin

So you forgot your WordPress password... Login to hosting control panel Go to PhpMyAdmin Click on your WordPress database and view list of tables in the database. Locate the 'wp_users' table. If you have changed the table prefix during the WordPress installation, then look for 'prefix_wp_users' table. Click on the browse link next to it. You should now see entries in your WordPress users table.