• Resolved Eugene Fraxby

    (@eugenefraxby)


    In SportsPress WP-admin I have future events calendar set in list view with Sort Order Ascending, and in WP-admin view it correctly displays as ascending. But on the website view the events display as descending, see the linked page I have provided. My featured events calendar (Top Picks menu) also displays the same problem.

    I also have a completed events calender which I have set with Sort Order Descending, and it displays correctly on website view, see also https://soccerholidays.com/calendar/completed-fixtures/.

    My widgets on homepage and side menu for future events are showing correctly as ascending for future events.

    I have a custom theme as a child of the Champion theme. I can’t see anything in my custom theme code that would be causing this. I have also checked the Champions code and can’t see anything that might cause it (it shouldn’t have been customised anyway). Note: I didn’t code it myself it was done by web design company but they shut down their business so handed it over to me. I know my way around WordPress sites reasonably well.

    Any ideas?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor Savvas

    (@savvasha)

    Hi @eugenefraxby,

    Did you try a default theme like Rookie or Twenty Seventeen?

    Thanks,
    Savvas

    Thread Starter Eugene Fraxby

    (@eugenefraxby)

    Sorry now the site is live I’ve been wary of switching themes due to some permissions error when I revert back that I’ve not got to the bottom of yet. But what the heck I went for it (and I have reverted back ok despite the error ?? ). It does indeed sort correctly as ascending on Twenty Sixteen so I’ll have another look through my custom theme code.

    If you have any pointers as to what typically causes this in custom themes please let me know.

    Many thanks for your quick response.

    Plugin Contributor Savvas

    (@savvasha)

    Hi @eugenefraxby,

    Well for start I was going to search for any DESC appearance!

    Also it worth to look for a file called single-list.php.

    Thanks,
    Savvas

    Thread Starter Eugene Fraxby

    (@eugenefraxby)

    single-list.php isn’t present anywhere in my installation. Neiter child nor champion theme folders.

    I don’t have shell access on my hosting so have used one of these crude php search scripts to search for ‘ DESC ‘. A lot of noise in the search output but doesn’t seem to be any culprits. Really though in my child theme there aren’t many files so I have gone through those individually. Could be the web devs have edited a file within the Champion parent theme.

    It’s a strange one, probably will end up being something really simple/obvious but just difficult to detect.

    Roch

    (@rochesterj)

    Hi!

    Thanks for your reply.

    At this point, it’s worth contacting the theme authors, as we don’t know how the theme is coded.

    If they don’t have the single-list.php file, you’ll probably need to check other files such as the single.php, index.php but it could be anywhere really (using custom functions).

    Thanks!

    Thread Starter Eugene Fraxby

    (@eugenefraxby)

    I did another test. In theme customisation changed Event List Layout from Theme Default to Sportspress Customizable. This also correctly sorts future calendar by ASC. But that layout won’t work for me so I need to get my Theme Default working.

    Do you know if below are the correct files to target?
    (I can see $order is set to ‘default’ then pulled in from the calendar setting, though I can’t see it used in a list sort)

    If so I will do comparisons between mychildtheme and champion for the differences (which are minor I think), then if necessary champion and sportpress templates.

    /wp-content/themes/mychildtheme/sportspress
    event-list-theme.php

    /wp-content/themes/champion/sportspress
    event-list-theme.php
    event-list.php

    /wp-content/plugins/sportspress/templates
    event-list.php

    Plugin Contributor Savvas

    (@savvasha)

    My betwill go to change the `/wp-content/themes/mychildtheme/sportspress
    event-list-theme.php`.

    But you have to talk with your theme developers, even the Champion ones at https://themeforest.net/item/champion-soccer-football-wordpress-theme/9451661 (it had update actually one week ago)

    We can’t help you more in that unfortunately…

    Thanks,
    Savvas

    Thread Starter Eugene Fraxby

    (@eugenefraxby)

    No problem thanks. My theme developers are no more as they have shut down their business but it’s closely based on Champion so I should be ok working things out from there before contacting the Champion devs.

    Thanks again

    Roch

    (@rochesterj)

    Hi!

    That’s unfortunate. I hope you are able to achieve this though. Sometimes the theme devs can still at least reply to your question on whether or not that’s possible to change or point out which files you’ll need to edit.

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Calendar Sort Order Ascending displays as Descending’ is closed to new replies.