Forum Replies Created

Viewing 11 replies - 61 through 71 (of 71 total)
  • Thread Starter Bucki

    (@bucki)

    … how come then, when changing the WordPress
    main language , then it will also change the calendar namings into that particular language ?!

    Thread Starter Bucki

    (@bucki)

    the thame name is BROADWAY.
    No the calendar is not translated cos the dates are shown as

    October 8th, 2012

    Thread Starter Bucki

    (@bucki)

    plssssssssssssssss

    Thread Starter Bucki

    (@bucki)

    ANYONE PLSSSSSSS

    Thread Starter Bucki

    (@bucki)

    oh sure??

    I read somewhere that this does the trick:

    <?php $numposts = get_option('posts_per_page'); ?>
    					<?php $wp_query = new WP_Query('cat=20&showposts=3'.$numposts.'&paged='.$paged); ?>
                        <?php if($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>

    but that did not work

    Thread Starter Bucki

    (@bucki)

    This did the trick 🙂

    <?php $blog = new wp_Query('cat=20&showposts=3'.$numposts.'&paged='.$paged); ?>

    However, now the Previous and Next links, display different category instead of remaining and showing the next/previous posts of that particular category!

    🙁 any idea?

    This is the code responsible for previous / next (I think)

    <?php if ($blog->have_posts()) : while ($blog->have_posts()) : $blog->the_post(); ?>

    Thread Starter Bucki

    (@bucki)

    Gov

    now, I know about CATEGORIES
    However, I want to create my own .php theme

    and using the blog.php (see script above) to improve it so it shows posts from specific category. Not sure if u understand me

    Thread Starter Bucki

    (@bucki)

    hmmmmmm 🙁

    I tried combining something from here:
    http://codex.wordpress.org/Class_Reference/WP_Query

    but no luck … pls if someone knows, let me know

    Thanks

    Thread Starter Bucki

    (@bucki)

    govpatel – yess that worked 😀

    Just for u to have a look at;
    this is the current BLOG.PHP script

    Now I copied it and renamed it Science.php
    Trying to figure out which code specifies, where it fetches
    the posts from, and wanting to make it so it only takes posts from
    a specific category or multiple ones…

    <?php
    
    // Template Name: Blog
    
    get_header(); ?>
    
    			<!-- BEGIN MAIN -->
    
    			<div id="main">
    
    				<div class="homepage-widget">
    
    					<div class="block full archive clearfix">
    
    						<h3>
    
    							<?php _e('Blog', 'Broadway'); ?>
    
    							<span></span>
    
    						</h3>
    
    						<div class="block-content clearfix">
    
    						<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
    
    						<?php $blog = new WP_Query('showposts=5'.'&paged='.$paged); ?>
    
    						<?php if ($blog->have_posts()) : while ($blog->have_posts()) : $blog->the_post(); ?>
    
    							<div id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?>>
    
    								<?php if(has_post_thumbnail()): ?>
    
    								<div class="block-image">
    
    									<div class="post-thumb-container clearfix">
    
    										<?php
    
    										if(has_post_format('video') || has_post_format('audio') || has_post_format('gallery')) {
    
    											$icon = '<span class="post-format-big ' . get_post_format($post->ID) . '"></span>';
    
    										} else {
    
    											$icon = '';
    
    										}
    
    										echo $icon;
    
    										?>
    
    										<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" class="post-thumbnail">
    
    											<?php the_post_thumbnail('archive-image', array('alt' => get_the_title(), 'title' => get_the_title())); ?>
    
    										</a>
    
    										<?php if(get_post_meta($post->ID, 'pyre_overall_score', true)): ?>
    
    										<div class="post-score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_overall_score', true); ?>.png" alt="" /></div>
    
    										<?php endif; ?>
    
    									</div>
    
    								</div>
    
    								<?php endif; ?>
    
    								<div class="post-content">
    
    									<h2><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h2>
    
    									<p class="post-meta"><?php the_time('F jS, Y'); ?>, by <?php the_author_posts_link(); ?></p>
    
    									<p class="post-excerpt"><?php echo string_limit_words(get_the_excerpt(), 16); ?> ...</p>
    
    									<a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>' class="readmore orange-button"><?php _e('Read More', 'Broadway'); ?></a>
    
    								</div>
    
    							</div>
    
    						<?php endwhile; endif; ?>
    
    						</div>
    
    						<?php kriesi_pagination($blog->max_num_pages, $range = 2); ?>
    
    					</div>
    
    				</div>
    
    			</div>
    
    			<!-- END MAIN -->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    Thread Starter Bucki

    (@bucki)

    yeh I managed to make the SUBmenu 🙂
    but just wondered how to remove the http link for specific menu

    example, i want to display

    Science <<< this one should have NO link whatsoever
    – Technology
    – Electronics

    Thread Starter Bucki

    (@bucki)

    so you are saying, I cant seek help in here
    regards to my other questions?

Viewing 11 replies - 61 through 71 (of 71 total)