Yes it can be done. You can check if current question have the tag you need and check user role: <?php global $wp_roles; $current_user = wp_get_current_user(); $roles = $current_user->roles; if( has_term( 'soccer', 'question_tag') && $roles == 'anspress_soccer' ) { // do something }
I think both are using same CPT name question, hence its not possible to use both plugin in same site.
You can add this filter for adding a custom field in basic group: https://gist.github.com/rahularyan/148549bf2099766e6da9
Hi, This code works perfect for me. 1. Just create an empty .php file. Paste the below code in it and save it in the templates folder (Also if you are using the askbug theme). 2. Create a new page in your WordPress and select the template you just created. 3. Now you can add this page to your menu if prefered. I edited the code a bit so it would show the post details and make it clickable. <?php /** * Template Name: Blog Page * Template used to display blog page * * @package ab */ get_header(); ?> <div class="container"> <div class="row"> <div id="content" class="main-content-inner col-sm-12<?php echo is_active_sidebar( 'sidebar-1' ) ? ' col-md-9' : ' col-md-12' ?>"> <?php query_posts( 'show_posts=20&post_type=post&order=ASC&orderby=date' ); ?> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part('content'); ?> <?php endwhile; // end of the loop. ?> </div><!– close .*-inner (main-content or sidebar, depending if sidebar is used) –> <?php get_sidebar(); ?> </div><!– close .row –> </div><!– close .container –> <?php get_footer(); ?>
i dont think the current version supports it. you can install myCred plugin, hook up with anspress reputation meta key – “ap-reputation” i think, then you can add/delete anspress reputation from myCred.
Hi, The only thing i noticed by looking into the sourcecode of the demo is that you can add this type of shortcodes from this page: http://demo.anspress.io/askbug/wp-content/themes/answerbox-v2/anspress/fonts/demo.html The color is just a regular HTML color code. It works fine for me. Can someone confirm this, that this is the right way?
Thanks. This are default placeholder widgets. When you add widgets to home and sidebar positions then it will vanish.
Which position you are using? ap_question position is only for question page. Try Ap Sidebar