stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2
stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2
stop pretty pagination rewrite site.com/cat/2 => site.com/cat?page=2
You should consider using the Auto-embeds Disabler plugin here: https://gist.github.com/ocean90/3796628 Note that it’s actually just a single line of code, if you prefer to add that to your functions.php – but I’d suggest keeping it as a plugin so you can easily activate/deactivate that functionality. remove_filter( ‘the_content’, array( $GLOBALS[‘wp_embed’], ‘autoembed’ ), 8 ); Note that … Read more
If some of your link are using localhost while others are using localhost:8888, you’ll want to make sure that all of the links in your database are set to localhost:8888. Follow these steps: Go and download Interconnect IT’s Database Search & Replace Script here Unzip the file and drop the folder in your localhost where … Read more
It’s not a WordPress problem, but…. You can use something like bit.ly or you just set up the short domain on hosting and either redirect using mod_rewrite or using PHP’s header() function.
Remove -2 from URL; no duplicate pages, no images, no pages in trash
At the end of the day, you’ll be putting stuff into your .htaccess file. But, could speed things up via the following method… You want to end up with two lists, taken from the wp_posts table. Both lists have the same fields/columns: Post ID; and Post URL. List 1 – created without the posts being … Read more
I think it should work by hooking into pre_get_posts: function wpse_254661_remove_pagination( $query ) { if ( $query->is_main_query() && get_query_var( ‘onepageprint’, 0 ) ) { $query->query_vars[‘nopaging’] = 1; $query->query_vars[‘posts_per_page’] = -1; } } add_action( ‘pre_get_posts’, ‘wpse_254661_remove_pagination’ ); Like this you can modify your query right before it gets fetched and the query object gets passed by … Read more
Get the url of a page template without using the page slug and ID
Background: WordPress strips out %0A from URL because in general newline has no practical purpose in URL. Unless it’s a mailto: protocol, WordPress strips out %0A. So it’s better not to use them in URL at all. Solution: Still, if for any specific purpose you have to use %0A, you may use %250A and then … Read more
This really isn’t a WordPress question per say. You need to create an ELB (Elastic Load Balancer) which then generates a DUAL-STACK CNAME which you can then use as an alias for your domain name in Route53. You do NOT want to simply use an A record for the ELB as Amazon has the right … Read more