Selecting specific category to display in jquery sliding panels
-
I have very limited knowledge of working with jquery scripts (none!?) so am not quite sure how to ask this question.
After many hours (days/weeks/months – have been looking for a long time) trying to find the perfect way to present my portfolio work I finally found what I was looking for but cannot for the life of me figure out how to display just a specific category.
The theme I found was: https://paulicio.us/items/view/28/viewport-a-free-wordpress-theme which I love as is simple and fits easily into the theme I have created.
The starting code for calling the posts into a sliding gallery is as follows:
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="panel" id="post-<?php the_ID(); ?>" title="<?php the_title() ?>"> <div class="wrapper"> <?php $media_type = get_post_meta($post->ID, 'lead_type', true); $media = get_post_meta($post->ID, 'lead_image', true); /* Display relevant code based on media type */ if(stristr($media, '.flv') || $media_type == 'flash') { /* Grab video preview image if the user has added one */ $video_preview = get_post_meta($post->ID, 'video_preview', true); ?> <span id="video-<?php the_ID(); ?>" class="flashvideo" style="height: 600px; width: 940px;"> <script type="text/javascript">
Is anyone able to tell me how to specify that I only want work-post category to display and still have the slider working? I can get one of the posts to display but the script doesn’t seem to work doing this. The only way I can get it to work is if I let it display all posts which I don’t want as some posts are informational without images.
I know I have not explained this clearly – not sure what is required.
Thanks so much
- The topic ‘Selecting specific category to display in jquery sliding panels’ is closed to new replies.