Category: Tricks

Tricks

Allow WordPress Contributors to Upload Images, Not All Kind of Files

Go dashboard -> Appearance -> Theme Editor -> Theme Functions Add the following php code // Let Contributor Role to Upload Media 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’ ); } // Upload Images Only add_filter(‘upload_mimes’, ‘custom_upload_mimes’); function …

Tricks

Click to View All Content .Js – Show More Content on Click

The resource of click to view more content. HTML code: This is free script from webenlance Dr. Anil Kohli is an Endodontist, Dental Surgeon and Dentist in Lajpat Nagar, Delhi and has an experience of 40 years in these fields. Dr. Anil Kohli practices at Duis nisl nibh, egestas at fermentum at, viverra et purus. …

Tricks

[fixed] Update to WordPress 4.4 – SERVER ERROR 500

It seems that the recent WordPress 4.4 update got error when you update your script automatically. When the WordPress updated, you will get blank page, and get the message: SERVER ERROR 500 And it is simple to fix this problem, just open your site with another browser, then you will get the following page: Database …

Tricks

Fix WordPress “You do not have sufficient permissions to access this page”

If you use Nginx and meet this problem with some WordPress plugin tab error “You do not have sufficient permissions to access this page”, please read this post, it’s easy to solve. You need to edit the WordPress core file: Go –> wp-admin –> options-general.php Open options-general.php, add the following code before the <php <base …