New Landing How can we help? Themeforest Theme Support Joyn How to limit the number of items in the sitemap

Viewing 12 posts - 1 through 12 (of 12 total)
  • Posted in: Joyn
  • #148039
    mengeco
    Member
    Post count: 558

    Hello,
    How to limit the number of items in the sitemap (shift page builder)
    Regards

    #148177
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Unfortunately that’s no possible. 🙁

    -Rui

    #148179
    mengeco
    Member
    Post count: 558

    If I write 10,000 articles, they will all appear in the sitemap page ???

    #148252
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please open to edit

    Find this code:-
    $page_list = wp_list_pages( "title_li=&depth=$depth&sort_column=menu_order&echo=0" );
    
    Change to:-
    $page_list = wp_list_pages( "title_li=&depth=$depth&sort_column=menu_order&echo=0&limit=20" );
    

    Thanks
    Mohammad

    #148299
    mengeco
    Member
    Post count: 558

    In which page .php should I replace this code?

    #148303
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Sorry i missed the file name. Please edit sf-shortcodes.php file at /joyn/swift-framework/core.

    Thanks
    Mohammad

    #148382
    mengeco
    Member
    Post count: 558

    Thanks but it don’t work

    #148398
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    It should work sure. Please provide me wordpress admin login detail.
    Thanks
    Mohammad

    #148407
    mengeco
    Member
    Post count: 558
    This reply has been marked as private.
    #148410
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please find this code :-

    $post_list = wp_get_archives( 'type=postbypost&limit=20&echo=0' );
    
    and change to:-
    $post_list = wp_get_archives( 'type=postbypost&limit=10&echo=0' );

    Thanks
    Mohammad

    #148421
    mengeco
    Member
    Post count: 558

    it means that the limit is 20 items (by default) ?
    If that’s it, it’s ok for me

    #148427
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I am glad that you manged to resolve the issue.
    Thanks
    Mohammad

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register