Number of Posts for mobile in "Show Portfolio"

Support Forums for LiveMesh Themes & Plugins Forums Agile Theme Support Number of Posts for mobile in "Show Portfolio"

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12156
    Yanivnyanivn
    Member

    Hey,

    how can I setup the number of posts to be X instead of Y for mobile in “Show Portfolio”?

    Thanks,
    Yaniv

    #12169
    VeenaVeena
    Moderator

    Pls insert the below line of code at line no:315 of post-shortcodes.php(framework/shortcodes/post-shortcodes.php) and see if it helps.

    if (preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]))
    $args['post_count'] = 4;
    

    (Kindly take a backup before modifying the file.)

    Attachments:
    #12172
    Yanivnyanivn
    Member

    works like magic!
    thank!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Number of Posts for mobile in "Show Portfolio"’ is closed to new replies.