Integrating Post Categories & Tags With Events

Home Forums Welcome! Pre-Sales Questions Integrating Post Categories & Tags With Events

  • This topic has 2 replies, 2 voices, and was last updated 12 years ago by Rob.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12132
    esteban
    Participant

    I followed this tutorial and doesn’t seem to work. there is no change in my dashboard. Is this compatible with every theme?
    This is my code in functions.php in my theme
    ‘Sidebar’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    register_sidebar(array(
    ‘name’ => ‘Homepage’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    register_sidebar(array(
    ‘name’ => ‘Homepage (Blog Style)’,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    register_sidebar(array(
    ‘name’ => ‘Footer Widget 1′,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    register_sidebar(array(
    ‘name’ => ‘Footer Widget 2′,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));

    register_sidebar(array(
    ‘name’ => ‘Footer Widget 3′,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ”,
    ‘after_title’ => ”,
    ));
    }

    // Add post thumbnail functionality
    add_theme_support(‘post-thumbnails’, array(‘post’));

    add_image_size(‘post-image’, 610, 250, true);
    add_image_size(‘featured-image’, 516, 340, true);
    add_image_size(‘featured-image-thumb’, 70, 60, true);
    add_image_size(‘widget-image’, 290, 160, true);
    add_image_size(‘widget-image-thumb’, 50, 50, true);
    add_image_size(‘media-thumb’, 140, 90, true);
    add_image_size(‘related-thumb’, 134, 90, true);

    // Include boostrap file for the pyre theme framework
    include_once(‘framework/bootstrap.php’);

    // Custom Functions
    include_once(‘framework/functions.php’);

    // Shortcodes
    include_once(‘shortcodes.php’);

    // Updates Notifier
    include_once(‘update-notifier.php’);

    // Profile Metaboxes
    include_once(‘framework/profile.php’);

    // Translation
    load_theme_textdomain(‘Avenue’, get_template_directory() . ‘/languages’);
    $locale = get_locale();
    $locale_file = TEMPLATEPATH . ‘/languages/’ . $locale . ‘.php’;
    if(is_readable($locale_file)) {
    require_once($locale_file);
    }

    // How comments are displayed
    function avenue_comment($comment, $args, $depth) {
    $GLOBALS[‘comment’] = $comment; ?>

    – ‘Reply’, ‘add_below’ => $add_below, ‘depth’ => $depth, ‘max_depth’ => $args[‘max_depth’]))) ?>

    comment_approved == ’0′) : ?>

    /* IMPORTANT !
    * This function registers the same custom post type as the The Events Calendar plugin
    * http://wordpress.org/extend/plugins/the-events-calendar/
    * This also registers WordPress’ native categories and tags while associating them with the Events Calendar Plugin
    */
    add_action( ‘init’, ‘add_calendar_taxonomy’, 0 );
    function add_calendar_taxonomy() {
    register_post_type(‘tribe_events’,array( // Registers Events Calendar Custom Post Type
    ‘taxonomies’ => array(‘category’, ‘post_tag’) // This registers the native WordPress taxonomies with The Events Calendar
    ));
    }

    <?php }
    // Trim end of excerpt
    function pyre_trim_excerpt($text) {
    return rtrim($text, '[…]');
    }
    add_filter('get_the_excerpt', 'pyre_trim_excerpt');

    #12170
    Rob
    Member

    This is the tutorial you should be following: https://theeventscalendar.com/integrating-wordpress-categories-tags-with-your-events/. Is the change taking effect on the frontend?

    #17326
    Rob
    Member

    Closing this thread out due to inactivity. If anyone has a related issue, please open a new thread.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Integrating Post Categories & Tags With Events’ is closed to new replies.