Solved

Widget Logic Portfolio Shortcode

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Woocommerce Global Add Ons 6 14
Help with a header and phone number hyperlink 2 31
manage footer size 4 51
how i fix Remove render-blocking JavaScript 3 52
WordPress has made it easy to create scalable sites based on their powerful CMS, but as great as WordPress is, there are some SEO issues that haven’t been addressed out of the box.  Fortunately these problems can be solved with a few plugins.  The f…
I want to start by talking about the use of plug-ins for WordPress. I started a web-site for a company I was working for a few years ago; I had extremely basic knowledge of HTML. I am a Graphic Designer by trade so I invited the opportunity as a cha…
This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
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.

786 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