Fitness trainers limited to 5 on class page

Support Forums for LiveMesh Themes & Plugins Forums FitPro Theme Support Fitness trainers limited to 5 on class page

This topic is: resolved

Tagged: , ,

This topic contains 10 replies, has 3 voices, and was last updated by Veena Veena 3 years, 11 months ago.

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #18341
    Kudu-Digital
    kudu-digital
    Member
    Post count: 12

    Hello,

    I have the following issue on the detailed class page: The number of fitness trainers displayed are always 5. Even though I select more fitness trainers in the backed for classes, it always displays maximum 5 trainers. Could you please help me to solve the issue? Some of our classes have up to 8 different trainers.

    e.g for this class I selected 6 trainers and only 5 are displayed

    Thank you

    #18351
    Raghavendra
    Raghavendra
    Moderator
    Post count: 4684

    This was fixed in v2.0 of the theme. You can load the changes made to the single-fitness_class.php file in the latest version.

    #18353
    Raghavendra
    Raghavendra
    Moderator
    Post count: 4684

    You should have this piece of code at line number 15 of the single-fitness_class.php file –

    $args = array(
                'post_type' => 'trainer',
                'post__in' => $trainer_ids,
                'posts_per_page'=>-1,
                'numberposts'=>-1
            );
    

    By default get_posts() function call limits the number of posts returned to 5.

    #18360
    Kudu-Digital
    kudu-digital
    Member
    Post count: 12

    Hi, thank you for your quick reply.

    I checked the file, and the piece of code is already there. See below the full code of our single-fitness_class.php file:

    • This reply was modified 3 years, 11 months ago by Kudu-Digital kudu-digital.
    • This reply was modified 3 years, 11 months ago by Kudu-Digital kudu-digital.
    #18371
    Veena
    Veena
    Moderator
    Post count: 8167

    Pls share a temp login to your site as a private reply .

    #18392
    Kudu-Digital
    kudu-digital
    Member
    Post count: 12
    This reply has been marked as private.
    #18398
    Raghavendra
    Raghavendra
    Moderator
    Post count: 4684

    Looks like only the trainer Renata Dal Pont is having an issue being an instructor. Otherwise the class does take any number of instructors you set. The said trainer is in scheduled status (not published) and hence the issue. Pls change the status of the trainer and you should be able to see the trainer appear in the class page.

    #18414
    Kudu-Digital
    kudu-digital
    Member
    Post count: 12

    Thank you for your help! yes Renata was scheduled, but all others were published and still not showing.

    Now they are all showing correctly. Thank you very much. Did you change anything?

    Best,

    ps: I would not like that this topic appears in Google SEO results – is there a way to make it non indexable?

    #18441
    Raghavendra
    Raghavendra
    Moderator
    Post count: 4684

    I just tested and things worked. No changes were made.

    Regarding Google search results, instead of making post private (not sure that is possible now) or deleting it, pls edit your past posts to remove whatever content you do not want indexed – link to your site etc. Do let me know if you see something that I need to remove from side. Will be happy to take care of the same. Thanks

    #18457
    Kudu-Digital
    kudu-digital
    Member
    Post count: 12

    I don’t think I am allowed to edit posts. I can’t find any button/link to do this. Could you remove the URL to our site in all posts for me and then close the topic?

    Thanks a lot,

    #18472
    Veena
    Veena
    Moderator
    Post count: 8167

    Done.

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

The topic ‘Fitness trainers limited to 5 on class page’ is closed to new replies.