malefactor
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: query_posts: How to call only the thumbnail?is there any other function for calling thumbnail except the_post_thumbnail(); ?
I really need solution for this.
Thanks again.Forum: Fixing WordPress
In reply to: query_posts: How to call only the thumbnail?This is my site. Everything is working perfect, i just want the thumbnails in front of my three links.
I am not hc php developer, I need only code which gonna show linkable Thumbnail and Title of three post from only one category.
line deleted. thx 😉
Forum: Plugins
In reply to: [WP-PageNavi] disable wp-pagenavi on pages with template using the loopHey buddy, did you figure it out how to disable wp-pagenavi? I am wondering how to as well.
I’m using loop on my front page (index.php) and don’t need pagenavi there.Forum: Fixing WordPress
In reply to: query_posts: How to call only the thumbnail?I putted the tags here, normally is not there in my code. I just wanted to mark it the part of my code which is not working or maybe I don’t know how to make it work 🙂
<?php the_post_thumbnail(); ?>
please help
Forum: Fixing WordPress
In reply to: Can anyone tell me where I am wrong in my codeawesome! many thanks!
Forum: Fixing WordPress
In reply to: Can anyone tell me where I am wrong in my codeThanks guys appreciate. Almost there 🙂 Everything is working fine, only the category name is missing. Latest Posts in ??? Category
This is my code now.
<?php wp_reset_query(); $cat_array = array(3,4,5,6,7); foreach( $cat_array as $cat_id ) : $args = array( 'posts_per_page' => 1, 'category_name' => $cat_id->slug, 'cat' => $cat_id,); query_posts($args); // reset to original if (have_posts()) : echo '<h2>Latest Posts in '.$cat_id->name.' Category</h2>'; ?> <?php while (have_posts()) : the_post(); ?> <div> <h2> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a> </h2> </div> <?php if ( is_category($vidcat) ) { the_content(); } else { echo strip_tags(get_the_excerpt(), '<a><strong>'); } ?> <!-- this area is for the display of your posts the way you want it --> <!-- i.e. title, exerpt(), etc. --> <?php endwhile; ?> <?php else : echo '<h2>No Posts for '.$cat->name.' Category</h2>';?> <?php endif; wp_reset_query; ?> <?php endforeach; ?>Forum: Fixing WordPress
In reply to: sidebarTabs doesn't worksYes, the problem was in theme, I just activated other theme and Tabs works great. But how can i fix this problem, because I need this theme.
Thank you