Skip to main content
Tweeted twitter.com/StackWordPress/status/1104577820297228288
deleted 17 characters in body
Source Link
cannyboy
  • 1k
  • 1
  • 15
  • 20
if ( is_page_template(is_page_template('car-profile-template.php') ) :
// show car widgets
if ( is_page_template(is_page_template('car-profile-template.php') ) :
// show car widgets
if ( is_page_template('car-profile-template.php') ) :
// show car widgets
Questionized the title (i.e. added a question mark :)
Link
MikeSchinkel
  • 37.5k
  • 14
  • 116
  • 132

Custom Post Type dataData in Sidebar widgets?

added 253 characters in body
Source Link
cannyboy
  • 1k
  • 1
  • 15
  • 20

The Road pages would have their own set of data for each road. Cars and Roads would also have there own page template, and the way I figure it would get the right sidebar is something like this within sidebar.php:

if ( is_page_template(is_page_template('car-profile-template.php') ) :
// show car widgets

The Road pages would have their own set of data for each road.

The Road pages would have their own set of data for each road. Cars and Roads would also have there own page template, and the way I figure it would get the right sidebar is something like this within sidebar.php:

if ( is_page_template(is_page_template('car-profile-template.php') ) :
// show car widgets
added 1703 characters in body; edited tags; edited title
Source Link
cannyboy
  • 1k
  • 1
  • 15
  • 20
Loading
edited title
Link
cannyboy
  • 1k
  • 1
  • 15
  • 20
Loading
Source Link
cannyboy
  • 1k
  • 1
  • 15
  • 20
Loading