This plugin helps create custom buddypress group tabs but it is producing a 404 error, how can it be edited, is it the screen_function?The code is i

you can use the code below, I edited it to work <?php /* Plugin Name: Custom BuddyPress Group Tabs Description: Adds custom tabs to BuddyPress groups Version: 1.0 Author: Bing */ // create the custom database table upon plugin activation function asdf_group_tabs_install() { global $wpdb; $table_name = $wpdb->prefix . ‘custom_group_tabs’; $charset_collate = $wpdb->get_charset_collate(); $sql = … Read more

Alternative layout the loop

For those interested, i’ve solved my problem using sizeof($wp-query->posts) The end-result is this content-news.php template <?php //echo sizeof($wp_query->posts); //var_dump($wp_query);die(); if(sizeof($wp_query->posts) == 4) : ?> <?php if( $wp_query->current_post == 0 ) : ?> <h3><?php the_title(); ?></h3> <div class=”row”> <div class=”col-md-12″> <p><?php the_excerpt(); ?></p> <p><a href=”https://wordpress.stackexchange.com/questions/216989/<?php the_permalink(); ?>” class=”btn btn-primary btn-sm”>Lees Meer</a></p> </div> </div> <div class=”fh5co-spacer fh5co-spacer-sm”></div> … Read more