Viewing 41 to 50 of 227 items
Archive | WordPress RSS feed for this section

wp-config Tweaks

Setting a Default Theme for New WordPress Installations With WP_DEFAULT_THEME define( ‘WP_DEFAULT_THEME’, ‘default-theme-folder-name’ ); Enabling the “Trash” Feature for Media Files With MEDIA_TRASH define( ‘MEDIA_TRASH’, true ); Letting WordPress Skip the wp-content Directory While Updating With CORE_UPGRADE_SKIP_NEW_BUNDLED define( ‘CORE_UPGRADE_SKIP_NEW_BUNDLED’, true ); Allowing Unfiltered WordPress Uploads for Administrators With ALLOW_UNFILTERED_UPLOADS define( ‘ALLOW_UNFILTERED_UPLOADS’, true );

0

Nested loops with WP_Query

I struggled with this for a while and then realised the post object of the current query needs to be saved to a temporary variable [$save_original_post_object = $post;] so it can be restored after the nested loop is finished [$post = $save_original_post_object;]. Additionally you need to setup a new post object in the nested loop  Full Article…

0