WordPress – Gallery Template for Gallery Plugin Shows Extended Search Area Beneath Gallery

Use GoDaddy Control Panel, File Manager and Search (Control-F) the Gallery Templates (gallery-single-template.php) & (gallery-template.php) and remove the line: <?php get_sidebar(); ?>

Look in public_html, find wp-contents folder\themes\tempera

If the files don’t exist in the tempera folder, copy them from the public_html/wp-content/plugins/gallery-plugin/templates folder.

WordPress – Counterize Web Stats Date Is Incorrect

Counterize II stats for “Today” in the WordPress admin dashboard were reseting back to zero in the middle of the day!

This is because the php script is querying the database for those stats based on the web server’s timezone, which was UTC, in my case. I needed the script to query based on my timezone. It was a very easy fix:

Somewhere in the beginning of the counterize.php script, add the line:

date_default_timezone_set(‘America/Chicago’);

Of course, change the America/Chicago to your timezone.

WordPress – Adding iCal to an event in Events Manager

Go to “Events. Settings, Formatting, Events. Go to “Default single event format” and edit the code to include (#_EVENTICALLINK).

Add this event to your calendar:
#_EVENTICALLINK

#_LOCATIONMAP

Date/Time
Date(s) – #_EVENTDATES
#_EVENTTIMES
{has_location}
Location
#_LOCATIONLINK
{/has_location}
Categories
#_CATEGORIES


#_EVENTNOTES
{has_bookings}

Bookings

#_BOOKINGFORM
{/has_bookings}
Bands Performing:
#_ATT{Bands}

WordPress – Contributor Can’t Add Media or Featured Image to Posts or Events

WP Article: http://wordpress.stackexchange.com/questions/77613/allow-contributor-role-to-upload-images-and-not-edit-already-published-articles

Plugin: https://wordpress.org/plugins/user-role-editor/

Used the User Role Editor plugin and had to change one setting to allow this functionality. After installation, go to “Users”, “User Role Editor”, Select Contributor from the drop down and check the box “upload files”. Click update and it’s done. Can be managed as multi-site or individual sites.

 

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’);
}