Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Adding Custom Post Types into Slideshow

Featured Replies

Hi guys im back,

 

Im looking for some help, my current slideshow only shows normal posts as done through add post, but I also have a custom post type "reviews", but I am not sure on how I would do this. I have looked through all the PHP files looking for something that links the slideshow to the post but not come up with anything.

 

Slideshow Code

 

<div id="slides">
<h2 class="feat-title">Featured </h2>
<div class="slides_container">
<?php
$slide = get_option('tiber_slide_cat');
$count = get_option('tiber_slide_count');
$slide_query = new WP_Query( 'category_name='.$slide.'&posts_per_page='.$count.'' );
while ( $slide_query->have_posts() ) : $slide_query->the_post();
?>

<div class="slide">
<?php
if ( has_post_thumbnail() ) { ?>
<a href="<?php the_permalink() ?>"><img class="slidimg" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=250&w=655&zc=1" alt=""/></a>
<?php } else { ?>
<a href="<?php the_permalink() ?>"><img class="slidimg" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" /></a>
<?php } ?>
<div class="caption" style="bottom:0">
	<?php wpe_excerpt('wpe_excerptlength_slide', ''); ?>
</div>
</div>

<?php endwhile; ?>
</div>
<a href="#" class="prev"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/arrow-prev.png" width="40" height="40" alt="Arrow Prev"></a>
<a href="#" class="next"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/arrow-next.png" width="40" height="40" alt="Arrow Next"></a>
</div>

 

Im not sure if the code that im looking for is above but if anyone could help me out I would greatly appreciate it.

 

Website in question: www.criticsunknown.com

 

Thanks Alot

Jack

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.