Forum Replies Created
-
AuthorPosts
-
September 10, 2013 at 4:26 pm in reply to: PRO 3.0 Upgrade – Customization issue with is_single() for tribe_venue post type #65393
aguawebdesign
ParticipantChris’ suggestion works, but none of the code I had inside the conditional statement is working. Prior to the upgrade, this all worked fine, so I guess I am not clear on what changed.
The code inside my conditional calls up the post thumbnail and uses
tribe_get_city( get_the_ID() )
to call up the city name. Neither the thumbnail or the city name are showing up.
Second – the method of using the post ID in the conditional statement is not ideal, because it would have to be manually added each time the client adds a new venue. I prefer a universal conditional that catches all single venues as they are added through the dashboard.To be clear, I am using the method described in the Plugin documentation to create a custom layout for the single venue post type. Before the upgrade, this method still treated it as a venue post type. Now it is a page? How can I apply a custom layout to the post type, while still having it be recognized as a post type? Maybe I am misunderstanding something. If there is a better method than the one I am using please let me know.
August 20, 2013 at 7:40 pm in reply to: PRO 3.0 Upgrade – Customization issue with is_single() for tribe_venue post type #62142aguawebdesign
ParticipantActually, even the following doesn’t work:
if ( is_single() } {
// do something
}This shows up on all other single pages except the venue page.
Here is a link to the page I am referring to in case that helps: http://evolutionswim.com/venue/renaissance-clubsport/August 20, 2013 at 7:29 pm in reply to: PRO 3.0 Upgrade – Customization issue with is_single() for tribe_venue post type #62140aguawebdesign
ParticipantI’ve been on vacation and just now coming back to this.
I am trying to use the conditional within functions.php. I need to add a title above the post content so using the template file won’t work. I am using Genesis hooks to position the title.
I tried using Bryan’s suggestion but it’s still not working. Before the upgrade to 3.0 it was working fine. I am trying to use:
if ( get_post_type() == ‘tribe_events’ ) {When I try and output the post type name it says “page.” I am using a custom template for this page, located in: theme directory/tribe-events/pro/single-venue.php. The template is showing up so that part is working. I just am not able to use conditionals on the template via functions.php.
aguawebdesign
Participant@sparkuparts – thank you!
July 12, 2013 at 3:44 pm in reply to: PRO 3.0 Upgrade – Customization issue with is_single() for tribe_venue post type #54886aguawebdesign
ParticipantI updated it to
if( tribe_is_venue() ) {
// do something here
} else {
echo “foo”;
}But it still is not working. The single venue page is outputting “foo.”
aguawebdesign
ParticipantVersion 3.0 seems to be placing the sidebar inside the #content div. It’s hard to say if this is due to a missing close tag or not. Normally that would throw off the rest of the layout, but everything else looks fine. I was able to temporarily “fix” this using CSS, although it is not an ideal solution:
.single-tribe_venue.content-sidebar #content,
.single-tribe_venue.sidebar-content #content {
width: 100%;
}.single-tribe_venue.content-sidebar #content .hentry,
.single-tribe_venue.sidebar-content #content .hentry {
width: 79.074074%; /* 854px / 1080px */
float: left;
}aguawebdesign
ParticipantFollowing…
I am having similar issues with Genesis since upgrading. -
AuthorPosts
