• Resolved beatcore

    (@beatcore)


    Hi,

    the latest Update Version 2.19.6 breaks my site…

    1: All “Buttons” which had an empty color had the link/text color from the theme before. Since the update they are transparent? No big issue, as i restyled them, but maybe worth a notice.

    2: Even bigger problem: i have a page with team members built up from a custom post type “team” (each team member has a title, some text on mouseover coming from content and a post image). After the update the page doesn’t count as a page anymore but obviously as an archive which is displayed in blog style with pagination and stuff. Other sites have the body class “page”, this one (even if it is a page) suddenly has the body class “archive” now??? I am using a custom shortcode [team_grid] via my functions.php, which is not working anymore at all… instead the whole content from the page is being ignored as it get’s treated like an archive???

    function team_grid_shortcode($atts) {
    ob_start();

    $atts = shortcode_atts(array(
    'columns' => 4,
    ), $atts, 'team_grid');

    $columns = intval($atts['columns']);
    if ($columns < 4 || $columns > 6) {
    $columns = 4;
    }

    $query = new WP_Query(array(
    'post_type' => 'team',
    'posts_per_page' => -1,
    'order' => 'ASC',
    ));

    if (!$query->have_posts()) {
    return '<p>Keine Teammitglieder gefunden.</p>';
    }

    echo '<div class="team-grid columns-' . $columns . '">';

    while ($query->have_posts()) {
    $query->the_post();
    $image = get_the_post_thumbnail(get_the_ID(), 'full');
    $name = get_the_title();
    $bio = get_the_content();

    echo '<div class="team-member">';
    if ($image) {
    echo '<div class="team-image">';
    echo $image;
    echo '<div class="team-overlay">';
    echo '<div class="team-content">' . wpautop($bio) . '</div>';
    echo '</div>';
    echo '</div>';
    }
    echo '<h2>' . $name . '</h2>';
    echo '</div>';
    }

    echo '</div>';

    wp_reset_postdata();

    return trim(preg_replace('/\s+/', ' ', ob_get_clean()));
    }
    add_shortcode('team_grid', 'team_grid_shortcode');

    Could you provide help? Seems to be a bug!

    best regards

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Version 2.19.6 breaking Site’ is closed to new replies.