running latest classified version 5.3.2 with fishing child theme

  • mark
    mark
    Senior Member 183 points
    January 17, 2020 at 8:44 pm

    Hi Guys, how do I increase the number of listing categories displayed on the homepage please. Seems to be stuck at 8 and I need 12 or more. Thank you!

    Attachments:
    You must be logged in to view attached files.
  • JamesD
    JamesD
    Super Guru 1,401 points
    January 18, 2020 at 4:53 am

    Hello mark,

    Only two ways I see to edit the homepage. One is to create a new page and create a layout similar to the default page.

    The other method (quicker, but editing file required) would be to make a backup copy of the ‘/childtheme_classifieds_fishing/home.php file and edit it.

    Attachments:
    You must be logged in to view attached files.
  • JamesD
    JamesD
    Super Guru 1,401 points
    January 18, 2020 at 4:56 am

    Disregard, this is actually for changing the carousel below it.

  • JamesD
    JamesD
    Super Guru 1,401 points
    January 18, 2020 at 5:08 am

    Ok, in the same file, around line #62, add the following line with the ‘show’ value set to the number of cats to display:
    $settings = array( 'show' => '12' );
    See image.

    Note: You may want to keep the number displayed divisible by 4.

    Attachments:
    You must be logged in to view attached files.
  • mark
    mark
    Senior Member 183 points
    January 18, 2020 at 12:56 pm

    This is great! Thanks JamesD. Let me ask a bonus question please…how do I pick which listing categories go in the boxes and how do I put them in the order I want? Thanks again for your help!

  • JamesD
    JamesD
    Super Guru 1,401 points
    January 18, 2020 at 1:39 pm

    Unfortunately, it’s a bit more in-depth than the previous solution. Similar concept, however knowledge with WP_Query would be needed (WP_Query) then custom changes to the query settings in /framework/elementor/_ccats/ccat-8.php would be needed.

    Note: The PP category widget has all the options I’ve mentioned.

    Hope it helps.

  • JamesD
    JamesD
    Super Guru 1,401 points
    January 18, 2020 at 2:07 pm

    @mark

    If you need help then go ahead and email me (customphix @ gmail.com) a list of all of the category id’s you want displayed, and the order, and I’ll put something together you can upload to your child theme directory.

  • mark
    mark
    Senior Member 183 points
    January 20, 2020 at 12:18 pm

    Just seeing this JamesD and appreciate your help! Have a great day.

  • Marie
    Marie
    Super Guru 1,812 points
    January 22, 2020 at 3:43 am

    Thanks for sharing 🙂

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

New Business Themes for WordPress 2020

Build your WordPress Business today with our WordPress Business themes.