wambrose
Forum Replies Created
-
Forum: Plugins
In reply to: Admin Column SortingOk, this works for me except that posts without any data in the
start_datetime
meta field don’t show. Any ideas?// Enable sortable dates column function will_events_sortable_columns( $columns ) { $columns['dates_datetime'] = 'start_datetime'; return $columns; } add_filter( 'manage_edit-events_sortable_columns', 'will_events_sortable_columns' ); // Sort by... function will_event_datetime_column_orderby( $vars ) { if ( isset( $vars['orderby'] ) && 'start_datetime' == $vars['orderby'] ) { $vars = array_merge( $vars, array( 'meta_key' => 'start_datetime', 'orderby' => 'meta_value' )); } return $vars; } add_filter( 'request', 'will_event_datetime_column_orderby' );
Forum: Plugins
In reply to: Admin Column SortingI’m working on a similar thing but haven’t managed to get it working with the code above (I must be missing something).
I too have a date column which I want to sort but I want to sort by the actual data value rather than whats displayed. This is beacsue I have made the dates ‘pretty’ (eg Thursday 1st June….) so at the moment its sorting by the the pretty version of the date.
Hope you can help.
Forum: Plugins
In reply to: Sorting custom post type columns in adminoops missed the last backtick when inserting the code, ignore the one before
add_filter...
Forum: Plugins
In reply to: [The Events Calendar] The Events Calendar Plugin: CSS OverrideOh, I haddn;t noticed this but as soon as I place a copy of events.css in MYTHEME/events/ I get a red line under EDIT POST in admin which apparently signifies an error in the plugin.
This plugin is 90% there for me but getting the last 10% might be more trouble than it’s worth!
Forum: Plugins
In reply to: [The Events Calendar] The Events Calendar Plugin: CSS OverrideOk, so I put this line in my theme’s style.css but I thought the whole idea was that the plugin’s events.css was overriden automatically if a copy was placed in MYTHEME/events/
@import url("events/events.css");
As dcutri said:
The Calendar and Event List will be visible on the Events category pages: yoursite.com/events and yoursite.com/events/upcoming, respectively.
This is as long as you don’t already have another page using the /events URL as I did!
Also, it seems if you set the ‘default views for events’ to ‘list’ rather than ‘calendar’ then the /events url for your site displays the list.
@orlisgal i totally agree. i’ve read EVERYTHING and only from reading this topic can a piece together some info to get it working. The plugin looks like it could be quite good though.
The main issue I have is that when i go to the events/upcoming page all my sidebars disappear and the page gets messy! Is this because the plugin uses a different category display template?
I need to know how i can make the URL provided by
get_permalink()
(as used in my header to provide facebook with a URL) to actually point to the single event page rather than always giving the root events page.@bspr3663 would love to see what you came up with (your code was “moderated as per the Forum Rules”.)
My #_eventurl theory only worked for the tweet and facebook like button but not the facebook share and several others. Facebook won’t accept any data given to it at the button it still scans the page for it’s open graph meta data (which i have working and dynamically set for all pages). However, the meta data doesn’t change between the events pages. I just end up sharing the main events page.
So back to square 1?!
Forum: Plugins
In reply to: [Plugin: MailChimp List Subscribe Form] Plugin 1.2.4 slow loading timesHi, I’m seeing the same delay due to this plugin did you find a solution?
I’ve not checked exact times in firebug but it’s obvious when browsing my site that disabling the mailchimp plugin speeds the site up dramatically.
Note:
The page load delay is present even when the widget is not being displayed.
There is least noticeable delay in IE9, then Firefox, the Chrome (most delay).so the answer was yes….too much code! lol
I’m sorry to hear you’re having issues. I didn’t have to apply for a facebook app ID or change any PHP.
I opened a free account with ADDTHIS and used they’re help pages to make the sharing toolbox i wanted (including the tweet and fb like buttons). I included the code to specify the URL rather than just the page the toolbox is placed on. I put #_EVENTURL where the URL should be.
Here is the contents of the EVENT LIST FORMAT field in EM settings:
[Code moderated as per the Forum Rules. Please use the pastebin]
Hope that’s not too much code but I want to help.
It works in IE, Chrome, Firefox and definately posts the links on my facebook page (no errors).
Good luck
Oops…See this thread
Ok, my final post on this topic. It seems the easiest way is to use something like the following addthis code into your ‘Single Event Format’ box in EM settings.
It’s the version of the addthis code where you can specify the share URL and Title.
<!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style " addthis:url="#_EVENTURL" addthis:title="#_NAME" addthis:description="#_NAME"> <a href="*****_THIS IS WHERE THE LINK TO YOUR ADDTHIS PROFILE GOES_*****" class="addthis_button_compact">Share</a> <span class="addthis_separator">|</span> <a class="addthis_button_preferred_1"></a> <a class="addthis_button_preferred_2"></a> <a class="addthis_button_preferred_3"></a> <a class="addthis_button_tweet" tw:via="YOUR_TWITTER_USER_NAME"></a> <a class="addthis_button_facebook_like"></a> </div> <script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script> <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4dab4061606c6557"></script> <!-- AddThis Button END -->
I got the ‘addthis’ code here.