Forum Replies Created
-
AuthorPosts
-
April 18, 2016 at 9:02 pm in reply to: All Events are sorted by Published Date, not Date of Event #1104058
Abraham
ParticipantGeoff,
I understand you are trying to help. But you are asking me to do what I’ve already done.
I’ve already identified that by disturbing the current nomenclature of the following files, the issue goes away, though it breaks some other functionality:
/srv/www/ocws2.staging.tepia.co/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Template/List.php
/srv/www/ocws2.staging.tepia.co/public_html/wp-content/plugins/events-calendar-pro/src/Tribe/Templates/Week.php
I have provided server details in a previous thread that was closed prematurely by another support agent. Can I give it to you again? Will you help me please?
April 14, 2016 at 11:19 am in reply to: All Events are sorted by Published Date, not Date of Event #1102631Abraham
ParticipantProblem persists with 2015 theme.
I had checked my funtions file and it looked fine.For reference, here is the functions.php file:
<?php
/**
* progression functions and definitions
*
* @package progression
* @since progression 1.0
*/if ( ! function_exists( ‘progression_setup’ ) ) :
/**
* Sets up theme defaults and registers support for various WordPress features.
*
* Note that this function is hooked into the after_setup_theme hook, which runs
* before the init hook. The init hook is too late for some features, such as indicating
* support post thumbnails.
*
* @since progression 1.0
*/function progression_setup() {
if(function_exists( ‘set_revslider_as_theme’ )){
add_action( ‘init’, ‘pro_ezio_custom_slider_rev’ );
function pro_ezio_custom_slider_rev() { set_revslider_as_theme(); }
}
add_action( ‘vc_before_init’, ‘progression_SetAsTheme’ );
function progression_SetAsTheme() { vc_set_as_theme( $disable_updater = true ); }// Post Thumbnails
add_theme_support( ‘post-thumbnails’ );
add_image_size(‘progression-blog’, 800, 350, true); // Blog Post Image
add_image_size(‘progression-wine’, 380, 830, false); // Wine Post Image
add_image_size(‘progression-event’, 600, 350, true); // Wine Post Image/**
* Make theme available for translation
* Translations can be filed in the /languages/ directory
* If you’re building a theme based on progression, use a find and replace
* to change ‘progression’ to the name of your theme in all the template files
*/
load_theme_textdomain( ‘progression’, get_template_directory() . ‘/languages’ );/**
* Add default posts and comments RSS feed links to head
*/
add_theme_support( ‘automatic-feed-links’ );/**
* Custom Widgets
*/
require( get_template_directory() . ‘/inc/widgets/widgets.php’ );/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded <title> tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( ‘title-tag’ );/**
* Enable support for Post Formats
*/
add_theme_support( ‘post-formats’, array( ‘gallery’, ‘video’, ‘audio’, ‘link’ ) );/**
* This theme uses wp_nav_menu() in one location.
*/
register_nav_menus( array(
‘primary’ => esc_html__( ‘Primary Menu’, ‘progression’ ),
) );}
endif; // progression_setup
add_action( ‘after_setup_theme’, ‘progression_setup’ );/**
* Set the content width based on the theme’s design and stylesheet.
*
* @since progression 1.0
*/
if ( ! isset( $content_width ) )
$content_width = 1200; /* pixels *//**
* Register widgetized area and update sidebar with default widgets
*
* @since progression 1.0
*/
function progression_widgets_init() {
register_sidebar( array(
‘name’ => __( ‘Sidebar’, ‘progression’ ),
‘description’ => ‘Default sidebar’,
‘id’ => ‘sidebar-1’,
‘before_widget’ => ‘<div id=”%1$s” class=”sidebar-item widget %2$s”>’,
‘after_widget’ => ‘</div><div class=”sidebar-divider-pro”></div>’,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘,
) );register_sidebar( array(
‘name’ => __( ‘Footer Widgets’, ‘progression’ ),
‘description’ => __( ‘Footer widgets’, ‘progression’ ),
‘id’ => ‘footer-widgets’,
‘before_widget’ => ‘<div id=”%1$s” class=”widget-pro %2$s”>’,
‘after_widget’ => ‘</div>’,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘,
) );register_sidebar( array(
‘name’ => __( ‘Shop Sidebar’, ‘progression’ ),
‘description’ => ‘WooCommerce sidebar’,
‘id’ => ‘sidebar-shop’,
‘before_widget’ => ‘<div id=”%1$s” class=”sidebar-item widget %2$s”>’,
‘after_widget’ => ‘</div><div class=”sidebar-divider-pro”></div>’,
‘before_title’ => ‘‘,
‘after_title’ => ‘‘,
) );
}
add_action( ‘widgets_init’, ‘progression_widgets_init’ );/**
* Enqueue scripts and styles
*/
function progression_scripts() {
wp_enqueue_style( ‘progression-style’, get_stylesheet_uri() );
wp_enqueue_style( ‘google-fonts’, ‘http://fonts.googleapis.com/css?family=Crimson+Text:400,400italic,600,700|Lato:100,300,400,700’, array( ‘progression-style’ ) );
wp_enqueue_script( ‘plugins’, get_template_directory_uri() . ‘/js/plugins.js’, array( ‘jquery’ ), ‘20120206’, true );
wp_enqueue_script( ‘scripts’, get_template_directory_uri() . ‘/js/script.js’, array( ‘jquery’ ), ‘20120206’, true );
wp_enqueue_script( ‘google_maps’, ‘http://maps.google.com/maps/api/js?sensor=false’, 1 );
wp_enqueue_script( ‘gomap’, get_template_directory_uri() . ‘/js/jquery.gomap-1.3.3.min.js’, array( ‘jquery’ ), ‘20120206’, false );wp_enqueue_style( ‘prettyphoto’ );
if ( is_singular() && comments_open() && get_option( ‘thread_comments’ ) ) { wp_enqueue_script( ‘comment-reply’ ); }
}
add_action( ‘wp_enqueue_scripts’, ‘progression_scripts’ );/**
* Remove plugin scripts and styles
*/
function pro_deregisterstyles() {
wp_deregister_style( ‘flexslider’ );
wp_deregister_style( ‘font-awesome’ );
wp_deregister_script( ‘prettyphoto’ );
}
add_action( ‘wp_enqueue_scripts’, ‘pro_deregisterstyles’, 100 );/**
* Custom Editor Styles
*/
function progression_add_editor_styles() {
add_editor_style( ‘inc/editor-style.css’ );
}
add_action( ‘admin_init’, ‘progression_add_editor_styles’ );/**
* Custom template tags for this theme.
*/
require get_template_directory() . ‘/inc/template-tags.php’;/**
* Custom functions that act independently of the theme templates.
*/
require get_template_directory() . ‘/inc/extras.php’;/**
* Custom Metabox Fields
*/
require get_template_directory() . ‘/inc/Custom-Meta-Boxes/custom-meta-boxes.php’;/**
* Theme Customizer
*/
require get_template_directory() . ‘/inc/default-customizer.php’;/**
* Theme Customizer
*/
require get_template_directory() . ‘/inc/mega-menu/mega-menu-framework.php’;/**Change buttons on Events Details page – no longer requested
add_filter(‘tribe_get_event_website_link_label’, ‘tribe_get_event_website_link_label_default’);function tribe_get_event_website_link_label_default ($label) {
if( $label == tribe_get_event_website_url() ) {
$label = “Buy Tickets Now »”;
$class = “pro-button-shortcode event-btn default-style-pro small-size-pro tickets-button”;
}return ‘‘ . $label . ‘ ‘;
} *//**Hide items from Admin Menu */
add_action( ‘admin_menu’, ‘oc_remove_menus’, 999 );
function oc_remove_menus() {remove_menu_page( ‘edit-comments.php’ ); // Comments
remove_menu_page( ‘edit.php?post_type=wine’ ); //Wines}
/**
* WooCommerce Functions
*/
if ( ! function_exists( ‘woocommerce’ ) ) require get_template_directory() . ‘/inc/woocommerce-functions.php’;/**
* Load Plugin Activiation
*/
require get_template_directory() . ‘/inc/tgm-plugin-activation/plugin-activation.php’;/* Remove Password Strength Meter */
function wc_ninja_remove_password_strength() {
if ( wp_script_is( ‘wc-password-strength-meter’, ‘enqueued’ ) ) {
wp_dequeue_script( ‘wc-password-strength-meter’ );
}
}
add_action( ‘wp_print_scripts’, ‘wc_ninja_remove_password_strength’, 100 );/**
* Manipulate default state and countries
*
* As always, code goes in your theme functions.php file
*/
add_filter( ‘default_checkout_country’, ‘change_default_checkout_country’ );
add_filter( ‘default_checkout_state’, ‘change_default_checkout_state’ );function change_default_checkout_country() {
return ‘US’; // country code
}function change_default_checkout_state() {
return ‘CA’; // state code
}// Simply remove anything that looks like an archive title prefix (“Archive:”, “Foo:”, “Bar:”).
add_filter(‘get_the_archive_title’, function ($title) {
return preg_replace(‘/^\w+: /’, ”, $title);});
/**
* Disables the public attendee lists on all events
*
* Removes the tribe_events_single_event_after_the_meta action that injects the attendee
* list that was introduced with the initial 4.1 release of Event Tickets Plus
*/
function disable_attendee_list_on_post() {
if ( ! class_exists( ‘Tribe__Tickets_Plus__Attendees_List’ ) ) {
return;
}remove_action(
‘tribe_events_single_event_after_the_meta’,
array(
Tribe__Tickets_Plus__Attendees_List::instance(),
‘render’
),
4
);
}add_action( ‘wp’, ‘disable_attendee_list_on_post’ );
// Check the password and confirm password fields match before allow checkout to proceed.
add_action( ‘woocommerce_after_checkout_validation’, ‘wc_check_confirm_password_matches_checkout’, 10, 2 );
function wc_check_confirm_password_matches_checkout( $posted ) {
$checkout = WC()->checkout;
if ( ! is_user_logged_in() && ( $checkout->must_create_account || ! empty( $posted[‘createaccount’] ) ) ) {
if ( strcmp( $posted[‘account_password’], $posted[‘account_password2’] ) !== 0 ) {
wc_add_notice( __( ‘Passwords do not match.’, ‘woocommerce’ ), ‘error’ );
}
}
}add_action(“admin_menu”, “createMyMenus”);
function createMyMenus() {
add_users_page (“Export OCWS”, “Export OCWS”, 0 , “/api/?userExport=true” );
}April 13, 2016 at 2:31 pm in reply to: All Events are sorted by Published Date, not Date of Event #1102156Abraham
ParticipantOur theme does have modifying files and I think you are on to something. There are a few different events plugins:
1. Events Maker (came with the theme, we disabled it) https://www.dfactory.eu/products/events-maker/
2. The Events Calendar
3. The Events Calendar ProIn the theme folder, there is a tribe-events folder but I appended ‘0’ to it and the problem persists.
The problem is corrected when I append a ‘0’ to either of these files (though it breaks some formatting):
/srv/www/ocws2.staging.tepia.co/public_html/wp-content/plugins/the-events-calendar/src/Tribe/Template/List.php/srv/www/ocws2.staging.tepia.co/public_html/wp-content/plugins/events-calendar-pro/src/Tribe/Templates/Week.php
Do these provide any insight as to what’s causing the issue? I can’t leave Week.php called Week.php0 or delete it.
April 4, 2016 at 9:57 pm in reply to: How to display Events Feed by date of event, not published date? #1098174Abraham
ParticipantThank you for your patience and help.
Discovered that there were files in this theme that were meant to customize an imitation bundled plugin called “The Events Maker”. Not sure if it’s a variation of your plugin or a ripoff, but it came with the template and was conflicting with the updated pro plugin. Removing these files fixed all bugs mentioned above.As for the Visual Composer item. It was a customized version of the bundled plugin that appears to be deprecated. I am using another visual composer widget to create a feed of the custom post type.
Thank you!
April 4, 2016 at 8:09 pm in reply to: How to display Events Feed by date of event, not published date? #1098147Abraham
ParticipantAnother bug the client found:
Go to Events page: http://ocws2.staging.tepia.co/events/
Click Next Events. It should load events after July 2016.
Instead, it loads April 30th at this URL: http://ocws.staging.tepia.co/events/list/?tribe_paged=2&tribe_event_display=listWhen you remove the &tribe_event_display=list query, it works fine:
http://ocws.staging.tepia.co/events/list/?tribe_paged=2Maybe these URL queries are causing issues?
April 4, 2016 at 7:29 pm in reply to: How to display Events Feed by date of event, not published date? #1098138Abraham
ParticipantIt appears to be sorting by date okay.
But once you change to another filter date, it sorts all events by the date the event was published. The very first events ever are at the bottom of the list. Any event you add now is at the top. Even if the event we made last year is happening tomorrow, it will show up at the end of the list. Even if we make an event now that happens at the end of next year, it will still show at the top of the list. How can we sort by date of event, not date published?
For the filtering bugs:
Those two bugs were fixed when I switched to Twenty Fifteen theme. They didn’t go away when I disabled all plugins, but they did go away when I changed the theme. It was still ordering events by date published, but the filtering issues went away. I’m assuming this tells us that some javascript from the theme we’re using is conflicting? How do we find out what’s making it clash?-
This reply was modified 10 years ago by
Abraham.
April 1, 2016 at 3:52 pm in reply to: How to display Events Feed by date of event, not published date? #1097292Abraham
ParticipantI’ve cloned our WP instance, updated the software to the latest version. Still having all issues above.
Here is the link to the updated site: http://ocws2.staging.tepia.co/events/Still having sorting issues.
Still having issues after selecting a date without clicking FIND button.It did, however fix the mobile bugs, but that’s not what this ticket was about. Thanks for the help!
Let me know how I can fix the ordering and the date selection.Abraham
ParticipantToo funny. I was sent here with the same exact two mobile bugs!!
This is for Mobile only, works fine on computers. On mobile, it displays a dot which signifies there is an event that day, but you cannot click/tap it!In regards to the week abbreviations; is there a quick fix we can add to our functions file? This doesn’t seem like it’s much more than label renaming.
March 28, 2016 at 1:56 pm in reply to: How to display Events Feed by date of event, not published date? #1094970Abraham
ParticipantAlso, when you select a date from the date filter, it removes the list type filter until you click the search button again (which is not ideal since we’re using the AJAX/javascript anyways, so when they select a date, it should load it properly).
This is a separate but similar issue. For details on this one, check this screenshot: http://screencast.com/t/YWsnL3SCWH5y
-
This reply was modified 10 years ago by
-
AuthorPosts
