olie480
Forum Replies Created
-
I tried a lot of keys so far, I even tried using the same key from another site, but nothing. I even tried switching from WP Cron technique, to Ajax, but that wasn’t doing anything either.
I am supposed to be getting a browser key, correct? not a server key? Also, I understand that using the same key from another site may conflict, but I have the referrers set to any, and I even tried that same key on a different site and it crawled fine.
I have generated, deleted, created new keys under a different google account, for some odd reason this one domain isn’t able to get the insights..
I have the progress bar moving now, and I logged the exceptions, and here is what I am getting on each request
Array
(
[0] => Array
(
[domain] => usageLimits
[reason] => keyExpired
[message] => Bad Request
))
Forum: Plugins
In reply to: [Widget Context] Widget Context 0.8.1 ReleasedFor the “Constant __DIR__ is not defined in PHP 5.2 (thus, does not include admin css)” Error use the following fix.
LINE 125 – widget-context.php
Change:
wp_enqueue_style( 'widget-context-admin', WP_CONTENT_URL . '/plugins/'. basename(__DIR__) . '/admin-style.css' );
To:
wp_enqueue_style( 'widget-context-admin', WP_CONTENT_URL . '/plugins/'. plugin_basename(dirname(__FILE__)) . '/admin-style.css' );
Hope this helps!
Forum: Plugins
In reply to: [WP-FirePHP] What…is…this..I just wish there was more documentation in using it in a theme, or if someone can clarify how to use this plugin on theme files…
My expectations
1. Install/Activate plugin
2. to use WP-FirePHP simply put $wpfphp->log($variable); in a file and watch the magic that is FirePHP.lol.. Sorry, don’t me to be harsh, but this plugin has potential.. I’m just confused..
Alright, so I answered my own question and here is how I did it.
Basically I made a custom WP_query to query the tribe events. I found out what the query was by doing a
<?php echo "<pre>" . print_r($wp_query->query_vars); echo "</pre>"; ?>
On the list.php page. Once I gathered what values were being passed, I then created a customized loop for the events.
// ALL EVENTS EXCEPT FOR MEETINGS CATEGORY <?php $args = array( "post_type" => 'tribe_events', "eventDisplay" => 'upcoming', 'tax_query' => array( array( 'taxonomy' => 'tribe_events_cat', 'field' => 'slug', 'terms' => array('meetings'), 'operator' => 'NOT IN' ) ), "posts_per_page" => '1', "start_date" => date('Y-m-d H:i:s', strtotime("now")), 'orderby' => 'event_date', 'order' => 'ASC' ); $events = new WP_query($args); ?> <?php while($events->have_posts()): $events->the_post(); ?> <p class="event-date"><?=tribe_get_start_date(); ?></p> <p class="event-des"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></p> <?php endwhile; ?>
I did the same for the meetings, but I just removed the NOT IN operator within the tax_query array.
Thanks again Tribe for a great plugin! We definitely get great use out of it, and really haven’t had any problems.
Thanks for the link, it is very helpful, although I couldn’t find a fix for the unique situation I am in.
Basically, all I want to do is hide events in a specific event category from the all events page.
Let’s say I have event categories
cars, vans, scooter, company meetings and I want to exclude the events in the company meetings from the upcoming events.So when someone goes to:
https://www.domainname.com/events/I get all the upcoming events including the company meetings. I just want to eliminate company meetings from Upcoming Events.
I am thinking about this more, and I don’t really think it is possible, because I won’t be able to add into the WP_query that you guys use for the initial events page.
I guess I could write my own WP_query and filter the events?