Solved

Widget Logic Portfolio Shortcode

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Did you use a default hosting installation of wordpress with the intention of it being your actual site?  Maybe you’ve installed it as a Blog to your current site and recently converted it to be the main site and do away with the old .htm pages.  An…
Like there are many different versions of Wordpress, there are also a handful of related side projects WordPress users should be familiar with.   All of these projects are open source and GPL licensed, which means there are few restrictions to us…
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 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…

758 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

21 Experts available now in Live!

Get 1:1 Help Now