Solved

Widget Logic Portfolio Shortcode

Posted on 2014-11-10
1
101 Views
Last Modified: 2014-11-18
Hi,

I am using Widget Logic on my site.

It's working great but i am struggling to apply it to my portfolio pages.

For example, i have it working fine on my About page:

http://www.website.com/about = is_page('about')

However, what would the short code be for the following two page, thanks in advance.

http://www.website.com/portfolio/job-01

http://www.website.com/portfolio/job-02
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
1 Comment
 
LVL 15

Accepted Solution

by:
eemit earned 500 total points
ID: 40434956
Try this:
is_tax('taxonomy_name', 'taxonomy_term') e.g.
is_tax('portfolio', 'job-01') or
is_tax('portfolio', 'array('job-01','job-02')')

or try:
is_singular('your_custom_post_type_slug')

or:
is_single() && (get_post_type()=='your_custom_post_type_slug')
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Now that you've installed WordPress 2.9 (http://www.experts-exchange.com/articles/Web_Development/Blogs/WordPress/WordPress-2-9-What-to-Expect-When-Upgrading-to-WordPress-2-9.html?) on your site, you need to install some plugins to get the most out …
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task. Steps include an assumption that you have Cpanel access or Ftp access.. If you do not hav…
The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

691 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