Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #553239

    I have a team cpt and it creates posts of type team_member.

    When these posts are viewed, it shows the blog post sidebar and it also shows at the top of the page “Blog-latest posts”.

    IT’s using the single.php to do this.

    I copied the single.php to my child theme and renamed it to single-team_member.php and was able to make changes this way but don’t know how to call a differnt sidebar.

    I saw this:
    <?php
    $avia_config[‘currently_viewing’] = “blog”;
    //get the sidebar
    get_sidebar();
    ?>

    but how to i change it so i loads my custom widget area in the sidebar? (the widget area i created is called team-widget)

    AM i going about this incorrectly?

    #555213

    Hi rudtek!

    this is not a theme related question, but a general WordPress one, so it would be best to ask this in general WordPress forum. I think you can try to search for a plugin with such a function, I quickly googled this: https://de.wordpress.org/plugins/custom-sidebars/

    Cheers!
    Andy

    #557185

    no, i know exactly how to create a sidebar. I’m trying to figure out enfolds code. specificly this line:

    $avia_config[‘currently_viewing’] = “blog”;

    i want to know what to change so that it will call one of the custom widget areas that are also created as part of the enfold programming.

    #557631

    Hi!

    You can change the sidebar using the “avf_custom_sidebar” hook, https://kriesi.at/support/topic/custom-sidebars-for-post-types/.

    You can use this, https://codex.wordpress.org/Function_Reference/get_post_type, to check if the post is a certain type.

    Regards,
    Elliott

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.