Support Forums for LiveMesh Themes & Plugins › Forums › FitPro Theme Support › Fitness trainers limited to 5 on class page
- This topic has 10 replies, 3 voices, and was last updated 9 years ago by Veena.
-
AuthorPosts
-
December 30, 2015 at 9:53 am #18341kudu-digitalMember
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
December 30, 2015 at 2:45 pm #18351RaghavendraModeratorThis 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.
December 30, 2015 at 2:51 pm #18353RaghavendraModeratorYou 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.
December 30, 2015 at 5:14 pm #18360kudu-digitalMemberHi, 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:
December 31, 2015 at 5:27 am #18371VeenaModeratorPls share a temp login to your site as a private reply .
December 31, 2015 at 10:05 pm #18392kudu-digitalMemberThis reply has been marked as private.January 1, 2016 at 1:59 pm #18398RaghavendraModeratorLooks 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.
January 3, 2016 at 8:40 am #18414kudu-digitalMemberThank 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?
January 5, 2016 at 2:01 pm #18441RaghavendraModeratorI 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
January 5, 2016 at 7:53 pm #18457kudu-digitalMemberI 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,
January 6, 2016 at 6:57 am #18472VeenaModeratorDone.
-
AuthorPosts
- The topic ‘Fitness trainers limited to 5 on class page’ is closed to new replies.