Forum Replies Created
I found another solution. I copied the content generated by this file into a new static CSS file and I replaced in the callcripts.php the path to the new CSS file. Of course, I can not make customizations from the admin menu, I will make them from that static file separately. However, the CPU load on the server is reduced, because the new file is static and does not involve php.
I protected the site with a Firewall from Sucuri, and that company sent me this message regarding this file and another one:
“Any .php file deep inside wp-content will have it’s directly access blocked by the Firewall, since most of the cases those files accessed directly are backdoors. Well coded plugins/themes do not load php files directly, they usually use AJAX instead:
Ok, thank you.
the attack is based on the query string for this file:
So changes have to be made in posttype-person.php, in 7league folder. I added:
‘orderby’ => ”,
‘orderby’ => $orderby,
Everything is OK. Now displays random. Thank you !
Thank you very much, I will test the theme changes. Are you a team of great quality. 🙂
Sorry, I have added this, with rand, not date, but it does not work.
query_posts(array( ‘orderby’ => ‘rand’, ‘post_type’ => ‘person’, ‘paged’ => get_query_var(‘paged’), ‘posts_per_page’=>$post_per_page , ‘person-category’=>$group_cat ) );
Thanks, but it does not work. I added here, is that correct?
query_posts(array( ‘orderby’ => ‘date’, ‘post_type’ => ‘person’, ‘paged’ => get_query_var(‘paged’), ‘posts_per_page’=>$post_per_page , ‘person-category’=>$group_cat ) );
Or php modification with ‘orderby’=> ‘rand’ in person-grid.php ?
Thank you ! I used an alternative solution, I added as representative images new dedicated images with a lower resolution.