WordPress User levels

from: WPMUDev.org The Change Role to drop down menu lets you change the roles of a user. The five roles a user can be assigned in decreasing level of responsibility are: Administrator – can do everything including complete power over posts, pages, plugins, comments, choice of themes, imports, settings, assign user roles and are even […]

Elegant Themes to change image size in filterable portfolio

\wp-content\themes\Flexible\funtions.php around line 310: change:     $portfolio_query = new WP_Query( apply_filters( ‘et_ajax_portfolio_args’, $portfolio_args ) );     while ( $portfolio_query->have_posts() ) : $portfolio_query->the_post();         global $post;         $width = apply_filters( ‘et_ajax_media_width’, 600 );         $height = apply_filters( ‘et_ajax_media_height’, 480 );         $media = get_post_meta( $post->ID, ‘_et_used_images’, true );         echo ‘<div>’; […]

Posted in Elegant Themes. 1 Comment »

Elegant themes sort project listings

from: https://www.elegantthemes.com/forum/viewtopic.php?f=169&t=127008&p=580906&hilit=filterable+sort#p580906 open template-page-projects.php and try to replace this code: $portfolio_args = array( ‘post_type’ => ‘project’, ‘showposts’ => -1, ‘tax_query’ => array( array( ‘taxonomy’ => ‘project_category’, ‘field’ => ‘id’, ‘terms’ => $et_ptemplate_projectcats, ‘operator’ => ‘IN’ ) ) ); with $portfolio_args = array( ‘post_type’ => ‘project’, ‘showposts’ => -1, ‘orderby’=>’id’, ‘tax_query’ => array( array( ‘taxonomy’ => […]

Posted in Elegant Themes. No Comments »

Elegant Themes sort portfolio page

from: https://www.elegantthemes.com/forum/viewtopic.php?f=143&t=65058&hilit=sort+posts+portfolio Go to the page-template-portfolio.php and replace this code: <?php query_posts(“showposts=$et_ptemplate_gallery_perpage&paged=$paged” . $gallery_query); ?> with <?php query_posts(“showposts=$et_ptemplate_gallery_perpage&meta_key=keyname&orderby=meta_value&paged=$paged” . $gallery_query); ?> Where keyname is a name of custom field. Note that the sorting will be alphabetical which is fine for strings (i.e. words), but can be unexpected for numbers (e.g. 1, 3, 34, 4, 56, […]

Posted in Elegant Themes. No Comments »

Elegant Themes remove links to post for Filterable Portfolio template

To remove links from excerpts using Elegant themes (Filterable Portfolio) /wp-content/themes/Flexible/functions.php (Around line #344 for Flexible theme v1.7) -> To remove links from Ajax code on “Filterable portfolio” template, so clicking on image won’t load (redundant) post. Note: There is no template to edit. // change link for image here // original line           […]

Posted in Elegant Themes. No Comments »

Elegant Themes to set the post excerpt length

To set how long the summary length is for auto excerpt on posts with Elegant Themes Ajax: Note: There is no template to edit. /wp-content/themes/Flexible/functions.php ( around line #350) -> // truncate post excerpt for elegant themes set here (was 560) truncate_post( 960, false )

Posted in Elegant Themes. No Comments »

WordPress Multiuser – sub sites not loading after changing root domain

Problem: By installing WP MU sub sites before adding your domain name to your main blog (root site), the sub sites will instantly break for your users. They will not see their website or be able to login to their WordPress admin. Fix: You’ll have to edit the database with PHPMyAdmin: wp-dbname->wp_blogs>go through each blog […]