Solved

Widget Logic Portfolio Shortcode

Posted on 2014-11-10
1
80 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

If you are looking for plug-ins to add functions to your WordPress small business web site, take some time to read though this comprehensive list.  These are all the plugins I use for my customers WordPress web sites, as well as my own.  Be sure to …
In Part I (http://www.experts-exchange.com/Web_Development/Blogs/WordPress/A_8410-Getting-Started-In-WordPress-Part-I.html), I introduced you to the powerful WordPress backend, the WordPress administrative Dashboard.  In Part II, I will introduce yo…
The purpose of this video is to demonstrate how to properly insert a Vimeo Video into a WordPress site or Blog. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

911 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now