svsdnb
Forum Replies Created
-
Forum: Plugins
In reply to: [Max Mega Menu] Wish this worked but it doesn'tthis obviously doesn’t work and like I said I wish it did but it doesn’t.
Forum: Plugins
In reply to: [Max Mega Menu] Wish this worked but it doesn'tIt was registered.
Forum: Plugins
In reply to: [Max Mega Menu] Wish this worked but it doesn'tI changed it as you suggested and that made it worse. Now it’s showing every page on my site.
Forum: Plugins
In reply to: [Max Mega Menu] Wish this worked but it doesn'tit’s just <?php wp_nav_menu (); ?> per WordPress codex.
Forum: Plugins
In reply to: [Max Mega Menu] Wish this worked but it doesn'tMain Menu is the name of my menu which is assigned to my Header Menu location which is my only menu location currently.
Forum: Plugins
In reply to: [Max Mega Menu] Wish this worked but it doesn'tYes, and then enabled via the widget icon next to each top line item for the nav.
Forum: Plugins
In reply to: [Max Mega Menu] Wish this worked but it doesn't…
Forum: Plugins
In reply to: [Custom Post Type UI] Updated and now 404where’s the zip to roll back please!!!???
Forum: Plugins
In reply to: Alternative to Yoast WP SEO?I too am looking as Yoast, while great at it’s job of SEO, is very heavy on the site resources.
Sometimes the silliest mistakes can cause the biggest problems.
I had an extra / in my http://
Working wonderfully and yes Piwik does work on non fully qualified domains!
I also see the error: Unknown site/blog
Forum: Plugins
In reply to: [Custom Post Type UI] Dashicon SupportWhere does the custom post type info get stored and accessed from? Is there a functions.php file within the plugin that I could add in the ‘menu-icon’ => line?
Forum: Fixing WordPress
In reply to: Query Date Array To Display Future Events OnlyI found the actual issue so I thought I’d update.
ACF documentation says to use $today = date (‘Ymd’) to compare dates but you really need to use current_time(‘Ymd’) so I removed the functions.php code that I added and fixed the problem rather than work around it.
Here’s my query now
$event1 = current_time('Ymd'); $args = array( 'post_type' => 'events', 'post_status' => 'publish', 'posts_per_page' => '10', 'meta_query' => array( array( 'key' => 'event_date_ends', 'compare' => '>=', 'value' => $event1, ) ), 'meta_key' => 'event_date_ends', 'orderby' => 'meta_value', 'order' => 'ASC', 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ), );Forum: Plugins
In reply to: [The Events Calendar] How can I remove iCal linksI put
remove_filter('tribe_events_after_footer', array('TribeiCal', 'maybe_add_link'), 10, 1);in the functions.php file and the iCal button was still there.
Forum: Fixing WordPress
In reply to: Query Date Array To Display Future Events OnlyTurns out I just had to convert this via functions.php to unix timestamp and it worked.
functions.php
function custom_unixtimesamp ( $post_id ) { if ( get_post_type( $post_id ) == 'events' ) { $startdate = get_post_meta($post_id, 'event_date_begins', true); if($startdate) { $dateparts = explode('/', $startdate); $newdate1 = strtotime(date('d.m.Y H:i:s', strtotime($dateparts[1].'/'.$dateparts[0].'/'.$dateparts[2]))); update_post_meta($post_id, 'unixstartdate', $newdate1 ); } } } add_action( 'save_post', 'custom_unixtimesamp', 100, 2);then query
$today = time(); $args = array( 'post_type' => 'events', 'post_status' => 'publish', 'posts_per_page' => '10', 'meta_query' => array( array( 'key' => 'unixstartdate', 'compare' => '>=', 'value' => $today, ) ), 'meta_key' => 'event_date_begins', 'orderby' => 'meta_value', 'order' => 'ASC', 'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ), );