Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi,

    @alexdelmont @supportstylemix

    I have the same issue with this plugin. It is great in all respects but the non date sorting for me is a major issue.

    Axel did you find a work around for this by chance? You mentioned javascript in your post?

    Many thanks.

    Thread Starter denise006

    (@denise006)

    Thanks guys for the sugggestions. I’ll work through them and let you know.

    Thread Starter denise006

    (@denise006)

    This is the other functions.php file within the theme folder:-

    <?php
    /**
    * The Cherry Tree functions and definitions
    *
    * @package The Cherry Tree
    */

    /**
    * Set the content width based on the theme’s design and stylesheet.
    */
    if ( ! isset( $content_width ) ) {
    $content_width = 640; /* pixels */
    }

    if ( ! function_exists( ‘the_cherry_tree_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 for post thumbnails.
    */
    function the_cherry_tree_setup() {

    /*
    * Make theme available for translation.
    * Translations can be filed in the /languages/ directory.
    * If you’re building a theme based on The Cherry Tree, use a find and replace
    * to change ‘the-cherry-tree’ to the name of your theme in all the template files
    */
    load_theme_textdomain( ‘the-cherry-tree’, get_template_directory() . ‘/languages’ );

    // Add default posts and comments RSS feed links to head.
    add_theme_support( ‘automatic-feed-links’ );

    /*
    * Enable support for Post Thumbnails on posts and pages.
    *
    * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails
    */
    //add_theme_support( ‘post-thumbnails’ );

    // This theme uses wp_nav_menu() in one location.
    register_nav_menus( array(
    ‘primary’ => __( ‘Primary Menu’, ‘the-cherry-tree’ ),
    ) );

    // Enable support for Post Formats.
    add_theme_support( ‘post-formats’, array( ‘aside’, ‘image’, ‘video’, ‘quote’, ‘link’ ) );

    // Setup the WordPress core custom background feature.
    add_theme_support( ‘custom-background’, apply_filters( ‘the_cherry_tree_custom_background_args’, array(
    ‘default-color’ => ‘ffffff’,
    ‘default-image’ => ”,
    ) ) );
    }
    endif; // the_cherry_tree_setup
    add_action( ‘after_setup_theme’, ‘the_cherry_tree_setup’ );

    /**
    * Register widgetized area and update sidebar with default widgets.
    */
    function the_cherry_tree_widgets_init() {
    register_sidebar( array(
    ‘name’ => __( ‘Sidebar’, ‘the-cherry-tree’ ),
    ‘id’ => ‘sidebar-1’,
    ‘before_widget’ => ‘<aside id=”%1$s” class=”widget %2$s”>’,
    ‘after_widget’ => ‘</aside>’,
    ‘before_title’ => ‘<h1 class=”widget-title”>’,
    ‘after_title’ => ‘</h1>’,
    ) );
    }
    add_action( ‘widgets_init’, ‘the_cherry_tree_widgets_init’ );

    /**
    * Enqueue scripts and styles.
    */
    function the_cherry_tree_scripts() {
    wp_enqueue_style( ‘the-cherry-tree-style’, get_stylesheet_uri() );

    wp_enqueue_script( ‘the-cherry-tree-navigation’, get_template_directory_uri() . ‘/js/navigation.js’, array(), ‘20120206’, true );

    wp_enqueue_script( ‘the-cherry-tree-skip-link-focus-fix’, get_template_directory_uri() . ‘/js/skip-link-focus-fix.js’, array(), ‘20130115’, true );

    if ( is_singular() && comments_open() && get_option( ‘thread_comments’ ) ) {
    wp_enqueue_script( ‘comment-reply’ );
    }
    }
    add_action( ‘wp_enqueue_scripts’, ‘the_cherry_tree_scripts’ );

    /**
    * Implement the Custom Header feature.
    */
    //require get_template_directory() . ‘/inc/custom-header.php’;

    /**
    * 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’;

    /**
    * Customizer additions.
    */
    require get_template_directory() . ‘/inc/customizer.php’;

    /**
    * Load Jetpack compatibility file.
    */
    require get_template_directory() . ‘/inc/jetpack.php’;

    add_theme_support( ‘post-thumbnails’ );

    function remove_submenus() {
    global $submenu;
    // Remove CSS Editor
    remove_action(‘admin_menu’, ‘_add_themes_utility_last’, 101);
    // Remove Widgets Sub Menu
    remove_submenu_page( ‘themes.php’, ‘widgets.php’ );
    // Remove Customize Sub Menu
    remove_submenu_page( ‘themes.php’, ‘customize.php’ );
    }

    add_action(‘admin_menu’, ‘remove_submenus’);

    function custom_menu_order($menu_ord) {
    if (!$menu_ord) return true;
    return array(
    ‘index.php’,
    ‘edit.php’,
    ‘edit.php?post_type=page’,
    ‘edit.php?post_type=home_page_boxes’,
    ‘edit.php?post_type=slider’,
    ‘edit.php?post_type=social_media’,
    ‘edit.php?post_type=contact_info’,
    ‘edit.php?post_type=events’,
    ‘edit.php?post_type=functions’,
    ‘edit.php?post_type=food_styles’,
    ‘edit.php?post_type=food_menu’
    );
    }
    add_filter(‘custom_menu_order’, ‘custom_menu_order’);
    add_filter(‘menu_order’, ‘custom_menu_order’);

    function remove_admin_menu_items() {
    $remove_menu_items = array(__(‘Comments’),__(‘Posts’));
    global $menu;
    end ($menu);
    while (prev($menu)){
    $item = explode(‘ ‘,$menu[key($menu)][0]);
    if(in_array($item[0] != NULL?$item[0]:”” , $remove_menu_items)){
    unset($menu[key($menu)]);}
    }
    }

    add_action(‘admin_menu’, ‘remove_admin_menu_items’);

    Thread Starter denise006

    (@denise006)

    Many thanks.

    This is the foooter, it I have pasted the version in the partial folder as this is what controls the footer:-

    <footer class=’d-all t-all m-all’>
    <div class=”wrapper”>
    <div class=”d1-d3 t1-t2 m-all column”>
    <h3>Contact Us</h3>
    <ul class=’contact’>
    <?php include(locate_template(‘partials/social_media.php’));
    echo $social; ?>

    </div>
    <div class=”d5-d7 t3-t4 m-all column”>
    <h3>Find Us</h3>
    <?php include(locate_template(‘partials/contact_info.php’)); ?>
    <p><?php echo $full_address; ?></p>
    <p><?php echo $hours; ?></p>
    </div>
    <div class=”d9-d12 t5-t6 m-all column”>
    <h3>Food Styles</h3>
    <ul class=’food-styles’>
    <?php include(locate_template(‘partials/food_styles.php’)); ?>

    <h3>Payment</h3>
    <img src=”<?php bloginfo( ‘template_url’ ); ?>/img/payment-options.png” alt=”” width=”100%”>
    </div>
    </div>
    </footer>
    <div class=”sub-footer d-all t-all m-all”>
    <div class=”wrapper”>
    <p class=’copyright’>Copyright © The Cherry Tree Pub. All rights reserved</p>
    </div>
    </div>

    functions.php – I have a few of them but again have sent the one in the partials folder which I hope is ok:-

    <?php

    $args = array( ‘post_type’ => ‘functions’, ‘order’ => ‘ASC’ );
    $loop = new WP_Query( $args );
    $i = 0;
    while ( $loop->have_posts() ) : $loop->the_post();
    $i++;
    $functions[$i][‘title’] = get_the_title();
    $functions[$i][‘content’] = get_field( ‘text’ );
    if (get_post_thumbnail_id()):
    $image = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘full’, true);
    $functions[$i][‘src’] = $image[0];
    $functions[$i][‘alt’] = get_post_meta( get_post_thumbnail_id() , ‘_wp_attachment_image_alt’, true);
    else:
    $functions[$i][‘src’] = ”;
    $functions[$i][‘alt’] = ”;
    endif;

    endwhile;
    wp_reset_query();

    $i = 1;
    foreach ($functions as $functions_single): ?>
    <div class=”functions d-all t-all m-all”>
    <?php if ($i == 1): ?>
    <div class=”image-right”>
    <?php else: ?>
    <div class=”image-left”>
    <?php endif;
    if ($functions_single[‘src’]): ?>
    <img src=”<?php echo $functions_single[‘src’]; ?>” alt=”<?php echo $functions_single[‘alt’]; ?>”>
    <?php else: ?>
    <div class=”no-image-spacing t-hide m-hide”> </div>
    <?php endif; ?>
    <h2><?php echo $functions_single[‘title’]; ?></h2>
    <div class=”text”><?php echo $functions_single[‘content’] ?></div>
    </div>
    <?php $i = ($i == 2) ? 1 : 2; ?>
    </div>
    <?php endforeach; ?>

    Many thanks.

    Thread Starter denise006

    (@denise006)

    Many thanks for getting back to me.

    I deactived all plugins with no joy. I then turned to the theme and there is only a custom built theme there. I went to download the default one and receive the error “An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.”

    I have ftp details for the account and can connect successfully from ftp software. I cannot however connect with the ftp details within WordPress. Part of the issue maybe?

    Thanks again.

    Denise.

    Thread Starter denise006

    (@denise006)

    Hi, thanks for getting back to me.

    There are two header files within the theme, the main one and a partial one, neither of which seem to contain anything odd:-

    Main

    <html <?php language_attributes(); ?>>
    <head>
    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>
    <meta name=”description” content=””>
    <meta name=”viewport” content=”width=device-width”>
    <title><?php wp_title( ‘|’, true, ‘right’ ); ?></title>
    <link rel=”profile” href=”http://gmpg.org/xfn/11″&gt;
    <link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>”>

    <!– Type Kit Fonts –>
    <link rel=”stylesheet” href=”<?php bloginfo( ‘template_url’ ) ?>/scss/normalize.css”>
    <link rel=”stylesheet” href=”<?php bloginfo( ‘template_url’ ) ?>/style.css”>
    <link rel=”shortcut icon” href=”<?php echo get_stylesheet_directory_uri(); ?>/favicon.png” />

    <script type=”text/javascript” src=”//use.typekit.net/mxf6dgq.js”></script>
    <script type=”text/javascript”>try{Typekit.load();}catch(e){}</script>

    <script type=”text/javascript” src=”<?php bloginfo( ‘template_url’ ) ?>/js/vendor/modernizr.min.js” ></script>

    <?php wp_head(); ?>
    </head>
    <body <?php body_class(); ?>>

    Partial Header

    <header>
    <div class=”wrapper”>
    <div class=”header-image pub-front-bg d-all t-all m-all”, style=”background-image: url(‘<?php echo $header_image; ?>’);”>
    “><img src=”<?php bloginfo( ‘template_url’ ) ?>/img/cherry-tree-logo.jpeg” alt=”Cherry Tree Logo” class=”logo” />
    </div>

    <nav class=’main d-all t-all m-all’>
    rows
    <?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?>
    </nav>
    </div>
    </header>
    <div id=”TA_certificateOfExcellence300″ class=”TA_certificateOfExcellence”>
    <ul id=”Zv3ym6FW” class=”TA_links TyDbKuiHh”>
    <li id=”8RzjDMipwz” class=”j01qd44Teiwv”>
    <img src=”http://www.tripadvisor.co.uk/img/cdsi/img2/awards/CoE2014_WidgetAsset-14348-2.png&#8221; alt=”TripAdvisor” class=”widCOEImg” id=”CDSWIDCOELOGO”/>

    </div>
    <script src=”http://www.jscache.com/wejs?wtype=certificateOfExcellence&uniq=300&locationId=1154837&lang=en_UK&year=2014″></script&gt;

    Does anything stand out to you at all?

    Thanks.

    Denise.

    Thread Starter denise006

    (@denise006)

    Hi Mork,

    This was not the cause if my issue, but I did appreciate you getting back to me.

    The issues was an oversight on my part, a case of staring past something that is right in front of you!

    Thread Starter denise006

    (@denise006)

    Thanks for getting back to me lindamork. I’ll go forth and investigate!

Viewing 8 replies - 1 through 8 (of 8 total)