Results 1 to 4 of 4

Thread: Using Widget-Logic with Vantage?

  1. #1
    Thread Starter
    Expired Customer barateau's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    18
    Thanks
    0
    Thanked 1 Time in 1 Post

    Using Widget-Logic with Vantage?

    I would like to use widget logic on my vantage site, so i can display widgets on specific categories.
    Like in category X ="city X" i would like to have a subway widget to help ppl find the way.

    What argument would i use to select a category from vantage category's?

    I have tested regular wordpress category syntax but it dosent display so i guess vantage category is something else, or just me that does something wrong.

    tested a few syntax in widget logic:
    is_category(668)
    is_category( '668' )
    is_tag( '668' )

    So i want all listings in the parent category 668 to show one special widget.

    /wp-admin/edit-tags.php?action=edit&taxonomy=listing_category&tag _ID=668&post_type=listing


    http://codex.wordpress.org/Conditional_Tags
    http://wordpress.org/extend/plugins/...c/other_notes/
    Examples syntax
    is_home() -- just the main blog page
    !is_page('about') -- everywhere EXCEPT this specific WP 'page'
    !is_user_logged_in() -- shown when a user is not logged in
    is_category(array(5,9,10,11)) -- category page of one of the given category IDs
    is_single() && in_category('baked-goods') -- single post that's in the category with this slug
    current_user_can('level_10') -- admin only widget
    strpos($_SERVER['HTTP_REFERER'], "google.com")!=false -- widget to show when clicked through from a google search
    is_category() && in_array($cat, get_term_children( 5, 'category')) -- category page that's a descendent of category 5
    global $post; return (in_array(77,get_post_ancestors($post))); -- WP page that is a child of page 77
    global $post; return (is_page('home') || ($post->post_parent=="13")); -- home page OR the page that's a child of page 13

  2. #2
    Veteran bluecafe's Avatar
    Join Date
    Apr 2010
    Location
    Berlin
    Posts
    1,563
    Thanks
    58
    Thanked 359 Times in 273 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  3. #3
    Thread Starter
    Expired Customer barateau's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    18
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Expired Customer barateau's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    18
    Thanks
    0
    Thanked 1 Time in 1 Post
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Custom Form Error when changing from Vantage Alpha to Vantage 1.0
    By nanami7 in forum Report Vantage Bugs (Legacy)
    Replies: 3
    Last Post: May 8th, 2012, 06:31 PM
  2. Forms: Conditional Logic?
    By joshwhite in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: April 23rd, 2012, 09:23 AM
  3. Populate Dropdown Values based on previous selection - form logic
    By deevey in forum ClassiPress General Discussion
    Replies: 1
    Last Post: April 13th, 2012, 10:07 AM
  4. [SOLVED] Taking off ad numbers of widget (Ad Categories Widget)
    By homme143 in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: March 16th, 2011, 01:23 PM