Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • Thank you.

    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:
    https://codex.wordpress.org/AJAX_in_Plugins

    Ok, thank you.

    Hi,
    the attack is based on the query string for this file:

    GET /wp-content/themes/hot/7league/script/custom.js.php?v=57409
    GET /wp-content/themes/hot/7league/script/custom.js.php?v=27633
    GET /wp-content/themes/hot/7league/script/custom.js.php?v=71935
    GET /wp-content/themes/hot/7league/script/custom.js.php?v=42775
    GET /wp-content/themes/hot/7league/script/custom.js.php?v=61266

    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.

    <?php $ix=0;
    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?

    <?php $ix=0;
    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.

Viewing 10 posts - 1 through 10 (of 10 total)