Forum Replies Created
-
AuthorPosts
-
June 25, 2015 at 1:04 pm in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #972999
Ken Charity
ParticipantSo can I just clarify then that the default nature of ECP is to display ‘page not found’ in the title tags?
<title>Events for July 2, 2015 | Page not found | WP Shindig!</title>is rendered on this page of your demo: http://wpshindig.com/events/2015-07-02/
When no event is found for that day.<title>Events for week of July 5, 2015 | Page not found | WP Shindig!</title>is rendered on this page of your demo: http://wpshindig.com/events/week/2015-07-05
When no event is found for that week.Since my theme only calls
<title><?php wp_title(''); ?></title>does ECP override this in it’s code?June 23, 2015 at 5:09 pm in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #972414Ken Charity
ParticipantI was playing with that but no luck on the same page.
Here is the code:
function theme_name_wp_title( $title, $sep ) { if ( is_404() ) { return $title; } global $page, $paged; if ( tribe_is_past() || tribe_is_upcoming() && !is_tax() ) { // List View Page $title .= __( 'No events scheduled.' , 'ehs' ); return $title; } elseif ( tribe_is_day() && !is_tax() ) { // Day View Page return $title; $title .= __( 'No events scheduled.' , 'ehs' ); return $title; } elseif ( tribe_is_week() && !is_tax() ) { // Week View Page $title .= __( 'No events scheduled.' , 'ehs' ); return $title; } elseif ( tribe_is_map() && !is_tax() ) { // Map View Page $title .= __( 'No events scheduled.' , 'ehs' ); return $title; } elseif ( tribe_is_photo() && !is_tax() ) { // Photo View Page $title .= __( 'No events scheduled.' , 'ehs' ); return $title; } else { return $title; } } add_filter( 'wp_title', 'theme_name_wp_title', 10, 2 );June 23, 2015 at 12:56 pm in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #972322Ken Charity
ParticipantHey Brian,
I have started back up on this project, I have the 404 breadcrumbs outputting the copy “no events scheduled” for the dates that dont have any events instead of “page not found”.
But there is an issue with the <title> tag that also lists the page as “Page not found” and the body class is listing a ‘error404’.
The meta file for outputting the title is:
<meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php wp_title( '' ); ?></title> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">I tried to use
<?php echo get_the_title(); ?>instead but get nothing output.Here is a page instance to reference: http://ehs.designerken.com/events/week/
June 9, 2015 at 8:39 am in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #968166Ken Charity
ParticipantAH OK, no I think that makes sense, however I think instead of it being a page not found, the breadcrumbs should read home>events>no events found and not home>404 (page not found)
So then I assume that I can add in the check to see if it is 404 and a event page and output the correct verbiage?
June 9, 2015 at 7:31 am in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #968116Ken Charity
ParticipantI dont know if it’s a bug or not but when I have no future events and I click view: list/week/day/map/photo
I get a a 404 page in the breadcrumbs. So it seems to be falling back to this part of the code:
} elseif ( is_404() ) { echo $current_before . __( '404 (Page Not Found)', '__x__' ) . $current_after;Is there a check I should add to the is_404() something that if it is also a event page and return ‘no events found’?
There are also two “Previous Events” under the Tribe event notification.
http://ehs.designerken.com/events/photo/?tribe-bar-date=2015-06-09June 7, 2015 at 1:21 pm in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #967707Ken Charity
ParticipantThanks for that last bit of advise. What’s interesting is that I had the template setting on (Blank – Container | Header, Footer) which is one of the templates provided by x-theme.
I decided to try the default events template on whim and behold there were breadcrumbs (using both the standard x-theme function and the Yoast SEO plugin).
So now I guess I can build out template to work as I need it, adding the proper code to make it look like the x-theme template more.
June 6, 2015 at 3:01 pm in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #967637Ken Charity
ParticipantThis reply is private.
June 5, 2015 at 10:03 am in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #967469Ken Charity
ParticipantI understand and appreciate you help and patience to this point.
I just don’t get why the code is not working. I even simplified it to
function x_breadcrumbs() { // START Checking for singular tribe_event pages if ( is_singular( 'tribe_events' ) ) { echo get_the_title() . ' this is the single event page'; } elseif ( is_singular( 'tribe_venue' ) ) { echo get_the_title() . ' this is the single venue page'; } elseif ( is_singular( 'tribe_organizer' ) ) { echo get_the_title() . ' this is the single organizer page'; // END Checking for singular tribe_event pages } }and that didn’t work. (the hardcoded copy appears properly though)
I did the same thing for EDD as I needed to check for downloads} elseif ( is_singular( 'download' ) ) { echo $current_before . get_the_title() . $current_after;And that works just fine.
June 4, 2015 at 4:39 pm in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #967345Ken Charity
ParticipantAh ok I see its for ECP specific titles. got it.
Still leaves the question as to why is the single event, venue and organizer titles are not appearing. I can’t figure it out.
June 4, 2015 at 1:05 pm in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #967307Ken Charity
ParticipantOk…I’m a bit lost when would I use
get_the_title()instead of
tribe_get_events_title()So I tried changing the elseif for venue to:
} elseif ( is_singular( 'tribe_venue' ) ) { echo $current_before . get_the_title() . ' checking...' . $current_after;And I don’t get a title returned in the breadcrumbs. but I do get “checking…” to show up. So I know that it is using that statement.
Is this starting to be part of the bigger issue that the title is listed as “Blog”?
June 4, 2015 at 11:26 am in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #967279Ken Charity
ParticipantHey Brian,
Definitely a step forward, I was able to add those in right above the call to
} elseif ( is_singular( 'post' ) ) {From the original code. I now get breadcrumbs for single event, venue, and organizer.
But the out put is only “Upcoming Event”.
I have updated the pastebin with current code: click here
Pages in question:
Single Event: http://ehs.designerken.com/event/concert-wind-ensemble-rehearsal-6/
Venue: http://ehs.designerken.com/venue/edison-high-school/
Organizer: http://ehs.designerken.com/organizer/ehs-band/Titles are still an issue but one thing at a time…
Quicklinks for reference:
Month View: http://ehs.designerken.com/events/June 3, 2015 at 10:49 pm in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #967080Ken Charity
ParticipantI’ve been able to get some good progress made in regards to breadcrumb integration.
I am however having an issue on getting the actual event (single-event) to have a breadcrumb as well as organizers and venues.
I have a pastebin created Click here.
Can you take a look as I cannot get the single event page, organizer, or venue to give me the correct breadcrumb. (they are all blank actually).
Also since there is an ajax call used to change the content in the month view and others, how do I get the breadcrumbs to reflect those changes? For instance if I go back or forward in a month view. Only the current month shows up in the breadcrumbs.
Once I get those situated I will start another thread to tackle the titles.
June 3, 2015 at 11:54 am in reply to: X-theme + ECP integration issues (no title/breadcrumbs) #966992Ken Charity
ParticipantThanks for pointing me in a direction, I’m still a bit foggy, but I will see how it goes. Let’s tackle breadcrumbs first.
I am assuming using the conditionals you listed I would add them to the
elseifstatements from the theme developer I would be able to get the breadcrumbs in place? I since you mentioned ECP views are archives would I then add the conditionals specifically to the lastelseiftargetingis_archive()and append it to the end ofif x_is_shop()like this:} elseif ( is_archive() ) { if ( x_is_shop() ) { echo $current_before . $shop_title . $current_after; } elseif ( tribe_is_month() && !is_tax() ) { // Month View Page echo 'were on the month view page'; } elseif ( tribe_is_month() && is_tax() ) { // Month View Category Page echo 'were on the month view category page'; } elseif ( tribe_is_past() || tribe_is_upcoming() && !is_tax() ) { // List View Page echo 'were on the list view page'; // continue with rest of ECP conditionals... } else { echo $current_before . __( 'Archives ', '__x__' ) . $current_after; }Ken Charity
ParticipantWe also host some web based e-training courses and we have people register from many states and also have trainers in different parts of the US. So coordination with every one was difficult in the beginning.
For our solution, we have edited the PHP templates to include the time zone abbreviations with the time that is displayed. We decided to use the company headquarter time as the base time which is (PST) and set as such in the wordpress admin.
`echo tribe_get_start_date( null, false, ‘g:i a – T’ )` is what we ended up using, then we created a special field in the event calendar for duration and list the length of the event (30 min, 45 min, 60 min, etc).
This solved for us that whoever saw the event knows that the event is in PST and let them calculate the time change on their own and based off the duration they knew when it would end as well.
Not sure how that works for the FB import but might help you with displaying your event time.
Thanks
KenOctober 31, 2013 at 1:46 pm in reply to: Missing Months – Apparent JQuery Issue after most recent WordPress Upgrade #74109Ken Charity
ParticipantI’m having the same functionality issue but only running 3.6.1
-
AuthorPosts
