Staff home page

This support request was posted in Paeon by kevinmartel

Request ID #5509 Resolved
  • Hi there

    I’m looking to have all staff on the home page and not only 4 persons in rotation as now. How can I change that ?

    Thanks a lot

    Kevin

    Juanfra Aldasoro

    Hi Kevin,

    Thanks for writing.

    We’re working on that for the upcoming version.

    At this moment the only way to achieve that would be modifying the code of the file template-home.php

    Are you comfortable with modifying code?

    Best,
    Juan

    Hi Juan

    Not really but I can try šŸ™‚

    Could you just help me with the structure of the code ?

    Thanks a lot for support
    Kevin

    Juanfra Aldasoro

    Hello Kevin,

    Ok, look for the file template-home.php, which is inside the theme folder (/paeon/).

    Open the file in order to edit it, and look for the following part:

    array(
    									'post_type'			=> 'staff',
    									'orderby'			=> $nice_staff_order,
    									'posts_per_page'	=> 4,
    									'order'				=> 'ASC');
    

    Replace the number 4, with a -1

    Yes, a minus one. Save the file and re upload it to your server.

    That should do the trick.

    Best,
    Juan.

    Works good Juan. Thanks !

    Juanfra Aldasoro

    No problem Kevin šŸ™‚

    Have a nice day,
    Juan.

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

This topic is marked as resolved

Only the topic author can re-open this thread.

Login to your Account

Welcome back! Please log in to your account by filling the fields below:

Forgot?

Not a member? Create a free account.

Create a Free Account

You're 27 seconds away from some awesome WordPress free stuff, benefits and more. Create a free account and have access to our free products, benefits and more!

Already have an account? Log in
Secure Server