Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Set lower number of home page posts for mobile only

Discussion in 'Misc WordPress Requests' started by philwebs, Mar 31, 2018.

  1. philwebs

    Guest

    Reply To: Set lower number of home page posts for mobile only, by philwebs

    One approach you could use for this would be to use wp_is_mobile to detect if it is mobile
    https://codex.wordpress.org/Function_Reference/wp_is_mobile
    and pre_get_posts to change to number of posts to 10.
    https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts

    Hopefully this helps, let me know if you I can help you anymore.

    Reply To: Set lower number of home page posts for mobile only
     
    #1

Share This Page

Monarch Social Sharing Plugin