?
Solved

Wordpress Widget Logic

Posted on 2014-01-07
3
Medium Priority
?
356 Views
Last Modified: 2014-01-15
Hi, i am using widget logic to display certain widgets on certain pages... for example, if i want a widget to display on my 'about' page i simply use:

is_page('about')

Open in new window


Does anyone know how to get a certain widget to display on a page that has a url as follows:

www.mydomain.com/portfolio/graphics


WIDGET LOGIC
http://wordpress.org/plugins/widget-logic/other_notes/

Thanks in advance for your help
0
Comment
Question by:oo7ml
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 25

Expert Comment

by:James Rodgers
ID: 39761909
Does anyone know how to get a certain widget to display on a page that has a url as follows:

www.mydomain.com/portfolio/graphics

should just be is_page('graphics')
0
 

Author Comment

by:oo7ml
ID: 39761916
I thought so too, but 'graphics' is a category of the portfolio section so it doesn't work like you suggested.
0
 
LVL 15

Accepted Solution

by:
eemit earned 2000 total points
ID: 39761995
Try this:
is_post_type_archive( 'your_custom_post_type_slug' )

Open in new window


or this:
is_category( 'graphics' )

Open in new window


or:
if (is_post_type_archive( 'your_custom_post_type_slug' )  && is_category( 'graphics' )  )

Open in new window

0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to install BuddyPress on your self-hosted WordPress site It’s been called everything from “social networking in a box” to “Facebook without the terms of service,” but until Feb. 16, BuddyPress was a relatively unknown outside the WordPress MU…
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question