Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our Be|theme demo. We don`t offer theme customization.


Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
3. If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration (you need purchase code to register) .


NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.


IMPORTANT!!! Along with your inquiry, please attach the address of the page which concerns the question. This will cause the time to answer on your question will be much shorter. If you do not want to publish your address publicly in the forum, please send a private message. Thanks!

Blog by TAG


have my website organized heavily with tags (e.g. category=science, tag=cancer)
need blog shortcode usable with tags

Please have a look, couldnt get it running:as expected to use tags (in addition or instead of categories)


... /wp-content/themes/betheme/functions/theme-shortcodes.php  line 885


/* ---------------------------------------------------------------------------
 * Blog [blog]
* --------------------------------------------------------------------------- */
if( ! function_exists( 'sc_blog' ) )
{
function sc_blog( $attr, $content = null )
{
extract(shortcode_atts(array(
'count' => 2,
'category' => '',
'category_multi' => '',
'tagID'             => '',
'tagName'           => '',
'exclude_id' => '',
'style' => 'classic',
'columns' => 3,
'greyscale' => '',
'more' => '',
'filters' => '',
'pagination' => '',
'load_more' => '',
), $attr));
$translate['filter'] = mfn_opts_get('translate') ? mfn_opts_get('translate-filter','Filter by') : __('Filter by','betheme');
$translate['tags'] = mfn_opts_get('translate') ? mfn_opts_get('translate-tags','Tags') : __('Tags','betheme');
$translate['authors'] = mfn_opts_get('translate') ? mfn_opts_get('translate-authors','Authors') : __('Authors','betheme');
$translate['all'] = mfn_opts_get('translate') ? mfn_opts_get('translate-item-all','All') : __('All','betheme');
$translate['categories'] = mfn_opts_get('translate') ? mfn_opts_get('translate-categories','Categories') : __('Categories','betheme');

$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : ( ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1 );
$args = array(
'posts_per_page' => intval($count),
'paged' => $paged,
'post_status' => 'publish',
'ignore_sticky_posts' => 0,
);
// private
if( is_user_logged_in() ){
$args['post_status'] = array('publish','private');
}

// categories
if( $category_multi ){
$args['category_name'] = trim( $category_multi );
} elseif( $category ){
$args['category_name'] = $category;
// tags
if( $tagID ){
  $args['tag_id'] = trim($tagID);
  }
  
if( $tagName ){
  $args['tag'] = trim($tagName);
  }
  
if using FORMAT here the textsize grows incredible so I cannot post the post!
Sign In or Register to comment.