• Ok, I have been banging my head against this problem and think I have found where it falls down.

    When Pretty Urls is on we get urls such as this :
    [site url]/category/events/month
    This is passed to the function templateChooser.
    The test – $this->in_event_category() – should return true here, however it returns false.
    The WP_Query object lists [category_name] => month, which does not exist.
    The function “in_event_category()”, does not correctly detect this to look to the level above. Could be correct, according to the name of the function.

    What is missing here ?
    Should there be a url translation being done further up the line to translate this url to
    [site url]/category/events/?eventDisplay=month

    Could one of the developers pitch in on this as it is getting very frustrating not having any come back.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    I’m not getting those results. in_event_category() tests true for me and in $wp_query, [category_name] is null. Pretty urls work fine. Can you give more details, especially speculation on why in_event_category() is testing false.? Do you have a link to an example? Thanks.

    Justin

    I can get in_events_category() to test false only by turning off Pretty URLs in the options page. Can you check that Pretty URLs is turned on? If you thought it was and it wasn’t, maybe the TEC options are not saving.

    Justin

    Thread Starter sgiddings

    (@sgiddings)

    Hi Justin,

    Firstly, the context – WordPress v3.0, calendar version 1.6.3
    Permalink structure : custom with /%postname%/

    If I turned off “pretty urls”, it worked as expected.
    When “pretty urls” is turned back on, the generated url is
    [site url]/category/events/month – which does not follow the permalink defined structure.

    I gave up trying to get it to work.
    I have built my own Calendar page.

    Simon

    There’s really no fix for this?

    Surely this is an important bug….almost everyone uses the custom link structure of something like /%postname% etc….

    If I understand you correctly, I think this is the same problem we’re having at https://www.yfcasiapacific.org/intranet/http:/www.yfcasiapacific.org/intranet/archives/category/events

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: The Events Calendar] Further info about Pretty Urls’ is closed to new replies.