Sedang Disiapkan

Simple PHP fix

Hi! Need a quick fix.

I have a wordpress theme I love, but there is an issue with the blog portion.

When someone goes to this page (or any grid type page) I set via the WP Reading Settings to only show 3 posts. There is a "CLICK TO LOAD MORE" button form the theme. When it's clicked, I would like it to load the rest of the posts (or a set number). The issue is that it will only load the number of posts set in the WP Readings settings.

[url removed, login to view]

Need to alter the code so it loads all (or, say 200). This way the blog pages will load fast and then the user opts to take the time to load more.

The code for this is in the themes '[url removed, login to view]' file:

/*-----------------------------------------------------------------------------------*/

# Load More posts

/*-----------------------------------------------------------------------------------*/

add_action('wp_ajax_nopriv_tie_load_more', 'tie_home_load');

add_action('wp_ajax_tie_load_more', 'tie_home_load');

function tie_home_load(){

$exc_home_cats = tie_get_option( 'exc_home_cats' );

if( $_REQUEST["isHome"] == 1 && $exc_home_cats ){

foreach($exc_home_cats as $cat) $string .= '-' .$cat.",";

$string = substr($string, 0, -1);

if( !empty( $string ))

$exc_home = '&cat='.$string;

}

query_posts($_REQUEST['query'].$exc_home.'&post_status=publish&paged='.$_REQUEST['page']);

get_template_part( 'loop', 'index' );

die;

}

Kemahiran: PHP, Wordpress

Lihat lebih lanjut: type of button in php with code, index php cat, php grid, issue fix in wordpress, fix wp, wordpress load posts, php page load, query loop, load posts wordpress, fix query, 2013 query, php wordpress load page php, wordpress function php, simple php wordpress, fix wordpress settings, fast load wordpress theme, 200 pages wordpress, wordpress 200 pages, php page grid, click load php, wordpress simple blog theme, wordpress form query, wordpress theme simple fast, php fix button, simple fast wordpress theme

Tentang Majikan:
( 42 ulasan ) West Hollywood, United States

ID Projek: #4099543

Dianugerahkan kepada:

thangtqvn

Wordpress is my skill, i can fix this issues for you within 30 mins

$30 USD dalam 0 hari
(116 Ulasan)
6.1

3 freelancers are bidding on average $93 for this job

grameenmelanet

expert here and can do this right now

$50 USD dalam 0 hari
(107 Ulasan)
6.5
softtonix

Hello, Review your project details and we are ready for your [url removed, login to view] check your private message. Thanks And Regards SOfttonix Team

$200 USD dalam 7 hari
(30 Ulasan)
5.8
scriptphp87

Hello Please read more than private message thank you

$200 USD dalam 2 hari
(42 Ulasan)
5.6