Quantcast
Channel: WPRecipes
Browsing all 121 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Giveaway: Three lucky winners will win a ThemeFuse Exposure WordPress theme

Everyone knows that a great theme is a must-have on WordPress, and ThemeFuse delivers that with every theme. ThemeFuse.com is giving away vouchers for their amazing photography WordPress theme. You...

View Article


Image may be NSFW.
Clik here to view.

Qards giveaway – Win one of three licenses of the awesome responsive website...

The great news that you receive today is that you can get one license of this awesome WordPress plugin and create dashing landing pages yourself, with a few clicks. Yes, you read that wright. You...

View Article


Image may be NSFW.
Clik here to view.

Triple your chances ? You could win an annual subscription to PixelKit...

If you’re one of 3 lucky winners, you’ll get an Annual Membership Account from PixelKit.com at absolutely no cost! Imagine taking advantag of literally thousands of graphics from PixelKit that will...

View Article

Image may be NSFW.
Clik here to view.

WordPress hack: Show all active plugins

Simply paste this code where you want to display the active plugin list. Once saved, active plugins will be displayed. function wpr_active_site_plugins() { $the_plugs = get_option('active_plugins');...

View Article

Image may be NSFW.
Clik here to view.

Sponsored post: 3 WordPress premium plugins for $39

I rarely publish sponsored posts on my blogs, but today here’s a very good deal that can benefit to many of you. For $39, Mighty Deals let you download a bundle of 3 premium plugins from Tribulant....

View Article


Image may be NSFW.
Clik here to view.

Easily delete WordPress post revisions using your fuctions.php file

Open you functions.php file and paste the following code: $wpdb->query( " DELETE FROM $wpdb->posts WHERE post_type = 'revision' " ); Save the file and open your blog homepage to run the code....

View Article

Image may be NSFW.
Clik here to view.

How to change the title attribute of WordPress login logo

Simply paste the following code snippet into your functions.php file. Title text can be customized on line 2. function custom_login_title() { return 'Your desired text'; }...

View Article

Image may be NSFW.
Clik here to view.

How to set the default image size in WordPress galleries

Simply paste the following snippet into your functions.php file: remove_shortcode('gallery'); add_shortcode('gallery', 'custom_size_gallery'); function custom_size_gallery($attr) { $attr['size'] =...

View Article


Image may be NSFW.
Clik here to view.

WordPress tip: Bulk delete comments with a specific url

Just run the following query on your WordPress database to delete comments with nastyspamurl as url. Don’t forget to replace the table prefix wp_ if your database is using another prefix. And of...

View Article


Image may be NSFW.
Clik here to view.

How to remove login shake effect when error occurs

Simply paste the following code into your functions.php file: function wps_login_error() { remove_action('login_head', 'wp_shake_js', 12); } add_action('login_head', 'wps_login_error'); Credit:...

View Article

Image may be NSFW.
Clik here to view.

WPZOOM giveaway: 5 ZOOM Builder plugins to win!!

A word about ZOOM Builder ZOOM Builder is a WordPress plugin which you install just like any other WordPress plugin. Unlike other WordPress plugins, though, once you’ve got this thing activated it...

View Article

Image may be NSFW.
Clik here to view.

WordPress tip: Modify any role name to fit your needs

Simply paste this code into your function.php file. Edit lines 5 and 6 at your convenience. function wps_change_role_name() { global $wp_roles; if ( ! isset( $wp_roles ) ) $wp_roles = new WP_Roles();...

View Article

Image may be NSFW.
Clik here to view.

How to disable content editor for a specific page template

Before pasting this code in your function.php file, edit line 11 and replace contact.php by the name of the page you want to disable the editor for. add_action( 'admin_init', 'hide_editor' ); function...

View Article


Image may be NSFW.
Clik here to view.

How to bring back single-column dashboard in WordPress 3.8

Bringing back the single-column dashboard in WordPress 3.8 is pretty easy: just add this code to your theme’s functions.php file. // force one-column dashboard function...

View Article

Image may be NSFW.
Clik here to view.

WordPress snippet: breadcrumb without plugin

Open your functions.php and paste the code below in it: function the_breadcrumb() { echo '<ul id="crumbs">'; if (!is_home()) { echo '<li><a href="'; echo get_option('home'); echo...

View Article


Image may be NSFW.
Clik here to view.

WordPress shortcode to display user registration date

First, place the code below into your theme’s functions.php file and don’t forget to save. function wpb_user_registration_date($atts, $content = null ) { $userlogin = shortcode_atts( array( 'user'...

View Article

Image may be NSFW.
Clik here to view.

How to pre-populate WordPress editor with default content

This code has to be pasted into your theme’s functions.php file. It can be customized to deal with custom post types, as shown on line 16 and after. add_filter( 'default_content',...

View Article


Image may be NSFW.
Clik here to view.

WordPress tip: How to display a disclaimer on posts older than one year

Paste the following code in your single.php file, within the loop. Edited the text on line 7 as desired. <? $ageunix = get_the_time('U'); $days_old_in_seconds = ((time() - $ageunix)); $days_old =...

View Article

Image may be NSFW.
Clik here to view.

WordPress tip: move all JavaScript files to the footer automatically

First, open your functions.php file and paste the following code in it: /** * Filter HTML code and leave allowed/disallowed tags only * * @param string $text Input HTML code. * @param string $tags...

View Article

Image may be NSFW.
Clik here to view.

Downsize your WordPress database by removing transients

First of it all, login to your phpmyadmin and choose your WordPress database. Once done, click on the sql button to open the sql command window. Then, simply paste the following sql command and execute...

View Article
Browsing all 121 articles
Browse latest View live