Site too Slow to establish db connection?

This has something to do with your database server to speed up response time. Also may be it is validating your IP from where your are pinging . If you can whitelist your IP,the connection would be more reliable and may increase ping time.

Next and Previous Pagination button not displaying in WordPress

You’re using a custom query (new WP_Query), so you need to pass $tyler_query->max_num_pages (the max pages) to the next_posts_link() function — more details here: next_posts_link( null, $tyler_query->max_num_pages ) And btw, no need to echo with previous_posts_link() because the function indeed echoes the output. I.e. Just do so: <?php previous_posts_link(); ?>. Also, you should add paged … Read more

how to use transient method?

First, you don’t need a raw SQL query, and by using one you give up all of WP’s optimisations. For example, if you run the query twice, it runs twice. If you had used WP_Query to getch those posts though, it would save them the first time to avoid making additional queries. It’s even possible … Read more

How can we pass a value from the_permalink() at WordPress?

the_permalink() only displays the URL for the current post in the loop. If you want to link to another post, you can use echo get_the_permalink( 123 );, where 123 is a post ID. <a href=”https://wordpress.stackexchange.com/questions/353261/<?php echo get_the_permalink( 123 ) ?>”> Note that the_permalink() and get_the_permalink() only get URLs for posts. If you want to get … Read more