• Resolved ivanbel

    (@ivanbel)


    Hi,
    I would like to add more last posts in the second tabs. Where can I change that in the plugins editor?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Calin Vingan

    (@calinvingan)

    A quick solution for this is to add in wp-config.php file these lines:

    add_action('admin_init', function (){
        if(class_exists('ABH_Classes_Tools')) {
            ABH_Classes_Tools::saveOptions('anh_crt_posts', 5); 
            //where 5 is the nr of latest posts to show
        }
    });

    It will save in the Starbox DB the number of posts you want to show.

    You can remove the lines after the change is applied.

    Calin

    • This reply was modified 2 years, 5 months ago by Calin Vingan.
    Thread Starter ivanbel

    (@ivanbel)

    Sorry, it’s not working.
    Results Parse error: syntax error, unexpected ‘&’ in /home/u509540937/domains/ryohoshiatsu.com/public_html/wp-config.php on line 111

    Line 111 is the 1st line of your code.

    Plugin Contributor Calin Vingan

    (@calinvingan)

    Could be from copy-paste as there is not & in the code I sent you.

    The code was tested and it should work properly.

    Thread Starter ivanbel

    (@ivanbel)

    Yes you’re right. My mistake. The code is good.
    Thank you very much for your kind help.

    Plugin Contributor Calin Vingan

    (@calinvingan)

    Great, don’t forget to write a good review ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Increase number of last post’ is closed to new replies.