Read below about related content about wordpress+2+9+exclude+categorie, You can contact us to improve our contents and site quality

Read below about related content about wordpress+2+9+exclude+categorie, You can contact us to improve our contents and site quality

WordPress Tips: Allow Contributors to Upload Files

April 11th, 2010 By WP Tricks Posted in Tips

If you WordPress site, have contributors users, there are some limitation. The big problem is your contributors can’t upload files on your WordPress site. The solutions of this problem is really simple. We need to add some functions in your current theme.

Allow Contributors to Upload Files - Nicole Scherzinger

Allow Contributors to Upload Files - Nicole Scherzinger

He we go what you should do. Open functions.php and write down this code

if ( current_user_can('contributor') && !current_user_can('upload_files') )
	add_action('admin_init', 'allow_contributor_uploads');

function allow_contributor_uploads() {
	$contributor = get_role('contributor');
	$contributor->add_cap('upload_files');
}

Read the rest of this entry »

Amazing Touch

Replace Content on Your WordPress using SQL

April 2nd, 2010 By WP Tricks Posted in Tricks

Like we all know, we can use SQL to replace or remove some content in our WordPress using phpMyAdmin, on this post I will show you How To Replace/Remove Content on Your WordPress using SQL. On this trick you can access trough phpMyAdmin on your server or using plugin WP-DBManager and you can direct access trough WordPress Admin panel.

Replace Content on Your WordPress using SQL

Replace Content on Your WordPress using SQL

The original source is come from Digging Into WordPress blog. Did you know what DigWP? is it wonderful WordPress books by Jeff Stars and Chris Coyier. Let’s move on, after you install DB manager or logging into phpMyAdmin, go to Run SQL interface and do this code

UPDATE wp_posts SET post_content = REPLACE ( post_content, 'nofollow ', '' );

Read the rest of this entry »

Amazing Touch

How To Increasing memory allocate on WordPress

August 16th, 2010 By WP Tricks Posted in Tricks

WP_MEMORY_LIMIT is new options introducing in WordPress 2.5 and newer. This setting increases PHP Memory for WordPress, not other applications.

Increasing memory allocate - Rachel-Bilson in Style UK

Increasing memory allocate - Rachel-Bilson in Style UK

Default Setting, WordPress will trying to Increase Memory into 32M By default, WordPress will attempt to increase memory allocated to PHP to 32MB, so the best ways change the setting more than 32MB on your wp-config.php. How To Increasing memory allocate on WordPress is simple, open your wp-config.php and added this line

define('WP_MEMORY_LIMIT', '64M');

Read the rest of this entry »

Amazing Touch

Deleted Post Revisions on WordPress and Meta Associated

March 4th, 2010 By WP Tricks Posted in Tricks

WordPress introduces some new featured that called Post Revisions, if we keep on edit our post content, Post Revision will be created, and this is not good if you have a lot of Post Revision it’s will increased your Databases sizes, on this post I will show you how to deleted post revision and meta associated to those revisions on WordPress. So you can save your Databases sized.

how to deleted post revisions and meta associated

How To deleted post revisions and meta associated

The good things is, we will use SQL Queries to do this, you can use phpMyAdmin or install SQL Executionner Plugin and write down on your SQL Command Area

DELETE a,b,c FROM wp_posts a WHERE a.post_type = 'revision' LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id);

Read the rest of this entry »

Amazing Touch

How To Display Content for Admin Only

March 3rd, 2010 By WP Tricks Posted in Tricks

Display Specific Content for Admin Only in WordPress can be done easily, all need to do just write some if else statement with same parameter. On this example I will show you how to display simple stats from WordPress and display it in front page. Like on our previous WordPress tricks, we need to tweak on theme files, on this tricks we will play around with footer.php, it’s because I want display this information on the footer area.

How To Display Content for Admin Only

How To Display Content for Admin Only

<?php global $user_ID; if( $user_ID ) : ?>
<?php if( current_user_can('level_10') ) : ?>
<?php echo get_num_queries(); ?> queries. <?php timer_stop(1); ?>
<?php endif; ?>
<?php endif; ?>

Read the rest of this entry »

Amazing Touch