valepul
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Forum: Plugins
In reply to: [OTW Portfolio Light] List results of a category on a pagethank you very much for the reply and congratulations for the plugin, is excellent. I have it running but would like to list a single category in the product through the code.
For example a category “cases”, which would have to modify this code?<ul class="otw-portfolio block-grid three-up mobile"> <?php if (is_page()) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('post_type=otw-portfolio&paged='.$paged); } ?> <?php if (have_posts()): while (have_posts()) : the_post(); ?> <li data-type="<?php foreach(get_the_terms($post->ID, 'otw-portfolio-category') as $term) echo $term->slug.' ' ?>" data-id="id-<?php echo($post->post_name) ?>"> <article id="post-<?php the_ID(); ?>" <?php post_class('otw-portfolio-item'); ?>> <a>" title="<?php the_title(); ?>" class="otw-portfolio-item-link"> <div class="image"> <?php if ( has_post_thumbnail()) { ?> <?php the_post_thumbnail('otw-portfolio-medium'); ?> <?php } else { ?> <div style="background:url(<?php echo plugins_url( '/otw-portfolio-light/images/pattern-1.png' ) ?>);width:<?php echo get_option('otw_pfl_thumb_size_w', '303'); ?>px;height:<?php echo get_option('otw_pfl_thumb_size_h', '210'); ?>px" title="<?php _e( 'No Image', 'otw_pfl' ); ?>"></div> <?php } ?> </div> <div class="title"> <h3><?php the_title(); ?></h3> </div> <div class="text entry-content"> <?php the_excerpt(); ?> </div> <span class="shadow-overlay hide-for-small"></span></a> </article> <?php endwhile; ?> <?php else: ?>
[Moderator Note: Please post code or markup between backticks or use the code button. Or better still – use a pastebin. Your posted code may now have been permanently damaged by the forum’s parser.]
thank you very much!
Forum: Plugins
In reply to: [OTW Portfolio Light] Adding category to indexhello, I need something. You could solve the problem?
thank you very much
Viewing 2 replies - 1 through 2 (of 2 total)