WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Short code

[Resolved] Short code

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Dragan Nikolic

    @nikolicdragan

    Not in this free version.

    The option of showing author box using shortcode, template tag or widget is reserved for the premium version, Fanciest Author Box.

    @Raj

    @rajeshtandonrocketmailcom

    I came across a problem with this plugin. Actually i have two single.php one for showing blog posts and second for displaying normal product posts. When i activate this plugin it comes on both of the post pages while i want this “fancier author box” to show only on blog post page and not on product post page. Is there any way to activate this plugin with specific category?? or any other better way to handle it???… please help

    Plugin Author Slobodan Manic

    @slobodanmanic

    You mean you have two files named single.php in your theme? How does that work?

    Plugin is set to add author box only to standard posts and pages, not to custom post types (if product is a custom post type). If ‘product’ is simply a category, try looking for this line in ts-fab.php:

    if( is_singular( 'post' ) ) {

    and replacing it with this:

    if( is_singular( 'post' ) && !in_category( 'category-not-to-have-author-box' ) ) {

    @Raj

    @rajeshtandonrocketmailcom

    Thanks for your consideration…
    My single.php working well with the code:
    <?php
    $post = $wp_query->post;
    if (in_category(’13’)) {
    include(TEMPLATEPATH . ‘/blog-single.php’);
    } else {
    include(TEMPLATEPATH . ‘/normal-single.php’);
    }
    ?>
    But problum is that this plugin is also showing on both the file while i whant it to display only on blog-single.php

    Plugin Author Slobodan Manic

    @slobodanmanic

    Have you tried editing plugin’s ts-fab.php file (my previous message)?

    @Raj

    @rajeshtandonrocketmailcom

    yes i tried that and replace the code but it’s still showing the same result. Please check my code in previous message. I want to show this plugin with(in_category(’13’)), which is for blog post….

    Plugin Author Slobodan Manic

    @slobodanmanic

    I presume you have replaced ‘category-not-to-have-author-box’ with your category, right?

    Try this:

    if( is_singular( 'post' ) && in_category( 13 ) ) {

    @Raj

    @rajeshtandonrocketmailcom

    Thanks u save me from trouble

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Short code’ is closed to new replies.