benjamincoppin
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Add some class???Can someone help please? :/
I don’t know if what I will tell you will answer the problem but maybe…
Just copy this line on the “archive-team.php” file on line 47:
<div class="team-pl cf"> <?php query_posts('post_type=sp_staff&posts_per_page=-1'); if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="col-2"> <?php if(get_the_post_thumbnail($post->ID,'wp-post-image')){echo get_the_post_thumbnail($post->ID,'wp-post-image');}else{echo '<img src="http://placehold.it/157x177&text=No Thumb">';} ?> <div class="player-name"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><p><?php echo ale_get_meta('team_position'); ?></p></div> </div> <?php endwhile; else: ?> <?php ale_part('notfound')?> <?php endif; wp_reset_query(); ?> </div>Forum: Plugins
In reply to: [Search in Place] search works only for membersThanks you very much, it works great!
Forum: Plugins
In reply to: [Search in Place] search works only for membersOk, thanks you.
But I have a problem… I also have a function for people not to try to go to the admin page if they are not admin.
Here is the function:
add_action('admin_init', 'gkp_restrict_access_administration'); function gkp_restrict_access_administration(){ if (!current_user_can('administrator')) { wp_redirect( get_bloginfo('url') ); exit(); } } if (!current_user_can('manage_options')) { add_filter('show_admin_bar', '__return_false'); // intervient sur le filtre show_admin_bar et retourne false }The problem is that this function blocks the access to the admin-ajax.php for everybody but admin.
What can I do?
Thanks you very much
Forum: Plugins
In reply to: [Search in Place] search works only for membersThanks for your answer.
For what kind of permissions should I change?
Thanks you
Forum: Plugins
In reply to: [BP Profile Search] Following criterion appears when the first is checkedThanks for your answer Andrea Tarantini, but I already tried and I didn’t succeed…
And unfortunately, I’m not familiar with JavaScript…Can you help me for doing it please?
Viewing 6 replies - 1 through 6 (of 6 total)