WordPress.org

Ready to get started?Download WordPress

Forums

[closed] New to WordPress - Some Question to Ask (19 posts)

  1. Bucki
    Member
    Posted 1 year ago #

    Hallo

    I always tended to use HTML + CSS to build my own sites whenever I wanted and kind of avoided all other CMS's like WordPress!! Not sure why but guess I was a bit afraid it :D

    Anyway ... I use WordPress 3.4.2 and installed a theme called BroadWay
    It looks allright to be honest, however I am finding WordPress a bit "not easy" to start with ... took me a bit of time to differ from Pages and Menu lol well yep!!

    Another thing is the BLOG template that makes me wonder what that is!?
    It lets me choose from - Default Template / Blog Template / Contact /

    Let's say I got a MENU saying - Science
    now, when setting Science to "BLOG TEMPLATE" then, that page displays the blog of ALL THE REST of what has been posted.

    I mean, can I not control what stuff to be in that blog, eg. only news related to science or even to make it so it shows news from 2 or 3 categories.

    Not sure how that can be done!?

    Other thing that I do not know how to .. is
    when making a menu consisting of submenus, exmaple

    Science
    - Technology
    - Electronics

    I finally figured it out how to make submenus under Appearance - Menu but not knowing how to delete any HTTP under the SCIENCE button, but the rest of submenu to have links .

    Surely I got lots of other questions but hope to get them sorted out first :) many thanks indeed

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Another thing is the BLOG template that makes me wonder what that is!?

    That's completely theme specific. Sounds like custom page templates or another theme-specific layout option. As this appears to be a commercial theme, you need to seek support from the theme's vendors.
    http://themeforest.net/forums/topic/themeforest/themeforest

  3. Bucki
    Member
    Posted 1 year ago #

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

  4. govpatel
    Member
    Posted 1 year ago #

    The reason Esmi suggested you seek help from support of the theme as we are not familiar with the theme and all themes are coded differently.

    We can help you with wordpress related problems

    As for your menus if the theme supports custom menus you can create the menu on Appearance>>>Menus and set it up as wish by dragging them to position your pages

  5. Bucki
    Member
    Posted 1 year ago #

    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

  6. govpatel
    Member
    Posted 1 year ago #

    In Appearance>>>Menus use Custom menu box instead of adding url just add # in box and in label box Science and add to menu
    and then have
    Technology
    Electronics

    as child to Science by dragging them slightly to right and save.

  7. Bucki
    Member
    Posted 1 year ago #

    govpatel - yess that worked :D

    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(); ?>
  8. Bucki
    Member
    Posted 1 year ago #

    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

  9. govpatel
    Member
    Posted 1 year ago #

    You can use category in your menu in Custom Menus and when clicked it bring all articles from that category you can check my website by clicking on my name the bottom menu are my categories and top menu are my Pages

  10. Bucki
    Member
    Posted 1 year ago #

    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

  11. fonglh
    Member
    Posted 1 year ago #

  12. Bucki
    Member
    Posted 1 year ago #

    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(); ?>

  13. fonglh
    Member
    Posted 1 year ago #

    No that's the line which loops through the selected posts.

    Looks like this one controls the page links, but it's a custom function.
    kriesi_pagination($blog->max_num_pages, $range = 2);

  14. Bucki
    Member
    Posted 1 year ago #

    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

  15. ssfutrell
    Member
    Posted 1 year ago #

    I need help. I am trying to make my right sidebar smaller where the widget area is located. It is hard to put a large pic in the main area because the widget area always cover the photo. The things I have in the widget area is actually small and not using all the space in the widget area. My site is http://makeitorfixit.com. I really need some help. Not really use to dealing with the css sheet.

  16. ssfutrell
    Member
    Posted 1 year ago #

    I have the WordPress Mom theme. Forgot to put that. Trying to make the widget area not take up so much space would love to decrease it. At http://makeitorfixit.com

  17. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    @ssfutrell, you can discuss that in your own thread.

  18. Tanvirul Islam
    Member
    Posted 1 year ago #

    Can any one kindly explain this below code. what the meaning of 'h1, : 'div'; ?

    <?php $heading_tag = ( is_home() || is_front_page() ) ? 'h1' : 'div'; ?>

  19. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    @Tanvirul Islam - not in this thread - you need to start your own thread if you have questions.

    http://wordpress.org/support/forum/how-to-and-troubleshooting#postform

    Please also read this before posting: http://codex.wordpress.org/Forum_Welcome#Where_To_Post

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.