WordPress on AWS with ELB

Finally I managed to solve this issue. The problem i had was on the ELB with the sticky sessions. I just enabled it and set a time of 3600 and now wordpress in login in users. A question remains with the real ELB power. If you do this sticky session I found some documentation that … Read more

Create batch of sites WordPress MultiSite

If you’ve got command-line access, wp-cli could be the solution you need. You could write up a quick shell script: wp site create –slug=site1 wp user create joe [email protected] –role=administrator –url=example.com/site1 … and so forth. References Installing wp-cli wp site commands wp user commands

Multisite – sort merged get_posts() queries

You can try the new (4.7+) wp_list_sort() utility function that’s a wrapper for WP_List_Util::sort() that uses usort() or uasort(). Example 1: Sort by descending post date $sorted_custom_posts = wp_list_sort( $custom_posts, ‘post_date’, ‘DESC’ ); Example 2: Sort by descending post date and ascending post title $sorted_custom_posts = wp_list_sort( $custom_posts, [ ‘post_date’ => ‘DESC’, ‘post_title’ => ‘ASC’, … Read more