Forum Replies Created
-
AuthorPosts
-
Barry
MemberHi Pascal – thanks for getting in touch π
I think the problem here is that you are trying to modify the query using query_posts() … that can cause problems here. If you comment out your query_posts() call you should find that tribe_get_venue() works as expected.
September 2, 2012 at 4:18 pm in reply to: Referencing the Events Page in WordPress conditional #24467Barry
MemberExcellent, glad that worked for you π
September 2, 2012 at 7:21 am in reply to: Referencing the Events Page in WordPress conditional #24457Barry
MemberOK – so as before there are a few template tags that could be useful here depending on how much control you need (such as tribe_is_events() and tribe_is_month() – a full list is available in the docs) but if you want a sort of catch-all that works on all Events Calendar pages then I don’t think anything like this is built-in.
If that is what you want however you could try adding this function to your theme’s functions.php file:
Then use it within your Widget Logic conditionals:
is_events_page()Does that work for you?
Barry
MemberHi Caitlin! One of our devs has got an idea that could work here – we would need your feedback about how you want to handle things though (please see my last post).
We’ll keep this open for a week or so to give you a decent window to reply.
Thanks!
Barry
MemberCool, well glad you’ve got it under control. Good luck with the rest of the project!
Barry
MemberNo prob – glad you’ve got it sorted π
Barry
MemberWell, that’s a pain but if nothing else it’s good to have this on the forum in case other users come up against this.
Thanks for keeping us posted π and please don’t hesitate to shout back if there is anything else we might be able to help with from our end.
Barry
Memberokay yes when i search for a specific event that is recurring. i get the url above. e.g. search for: Ignite. pulls up ignite-3/1970-01-01. so are you telling me all i need to do is append the evenDate to the url and it will work?
I think we are experiencing different things – or perhaps I am misunderstanding you, but either way I can’t see malformed URLs such as you are describing.
Since you are working on a local installation (I think) and can’t provide a URL for me to look at it is difficult to say … that said if you are happy with your solution (above) then that’s great – but please don’t hesitate to reply if you need further help π
Barry
MemberThanks Andy! Glad to have helped π
Barry
MemberHi Isaac, thanks for reaching out to us. Can I just clarify the problem with search?
Let’s say you have a recurring event called “Recurring Test” which recurs 10 times. The entry for “Recurring Test” in the search results will have a slightly different permalink to those shown in the calendar (which contain an additional eventDate parameter) but it will basically link you to the single event view for the first recurring event in the series.
Are you experiencing something different? I just want to be sure I am understanding the problem correctly.
Thanks!
Barry
MemberJust one more thing. It seems I need to also βSave Changesβ for the formatting to work correctly, otherwise every item shows up on same line no as distinct dropdown items.
Hmm … perhaps your line breaks are in the wrong format? Can you try http://pastebin.com/24i5Qzir
Barry
MemberOK, I can understand that. What I can say however is that I quickly put together a test (networked) site and the results of events/feed and {subsite}/events/feed is as I would expect.
That makes me think there could be a conflict somewhere; if you can’t disable other plugins and switch theme on the site in question are you able to create a test site in the same or a similar hosting environment and check this out for yourself?
It would be great to isolate the cause of this.
Barry
MemberWith reference to the Themer’s Guide would it be workable for you to call a specific sidebar from your custom ecp-page-template.php (and/or ecp-single-template.php) if you wanted a unique sidebar for event related pages?
A different approach Timothy (Wood – one of the devs) suggested, depending on how much control you need and what the context is, would be to use methods like these:
if (get_post_type($post->ID) == TribeEvents::POSTTYPE) {
/* do something... */
}// Or for venue pages, for instance:
if (tribe_is_venue($post->ID)) {
/* do something... */
}
(Those haven’t been tested by the way, they are just rough sketches of how you might approach this.)
I hope that helps you out a little, but please don’t hesitate to shout back if you need me to clarify anything π
Barry
MemberMike, thanks for the detailed posts. If this is a problem then we would of course love to get this fixed. Can I check if I am understanding this correctly first of all?
- You have a networked site and the problem with the feed exists within one of those networked sites – you are also using a sub-directory style URL structure rather than subdomains
- When you try to view the RSS feed for one of those networked sites the XML structure is present but basically empty
Does that sound like a fairly accurate summary? If so, what I can say is that I am unable to replicate this … so there is a possibility that there is some kind of conflict either with another plugin or with code in your theme – are you in a position to check this out?
Barry
MemberGreat!
-
AuthorPosts
