?
Solved

Widget Logic Portfolio Shortcode

Posted on 2014-11-10
1
Medium Priority
?
109 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 2000 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
The purpose of this video is to demonstrate how to exclude a particular blog category from the main blog page. This is can be used when a category already has its own tab, or you simply want certain types of posts not to show up on the main blog. …
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

800 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