Jump to content

Recommended Posts

Hi just started moving my site for a static html to a wordpress. I'm new to php and have edited most of what I needed so far. However I have been stumped with one section of coding and am having trouble with. On the main menu bar on the template it is organised alphabetically I need it to be organised either by date or my design some function that I can manipulate to the order I need. I think I found the code that I need to change if its not this I can pull the correct code. For reference this was the InBerlin theme.

 

Thankyou everyone for the help in advanced

 

Links www.armstrongcomputerrepair.com/test

 

code:

 

<?php get_header(); ?>

 

<div id="content">

 

<div id="content-left">

 

<?php if (have_posts()) : ?>

 

<?php while (have_posts()) : the_post(); ?>

 

<div class="box-left" id="post-<?php the_ID(); ?>">

 

<h3><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>

 

<?php the_content(); ?>

<?php wp_link_pages('before=<div class="nav_link">&after=</div>&next_or_number=number&pagelink=<span class="page_number">%</span>'); ?>

<div class="clear"></div>

<?php comments_template(); ?>

</div>

 

<?php endwhile; ?>

 

<?php else : ?>

 

<div class="box-left" id="searchform">

 

<h3>Not found!</h3>

<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>

<?php include (TEMPLATEPATH . "/searchform.php"); ?>

 

</div>

 

<?php endif; ?>

 

  </div><!-- end content-left -->

 

  <?php get_sidebar(); ?>

 

  <div class="clear"></div>

 

</div><!-- end content -->

 

<?php get_footer(); ?>

Link to comment
https://forums.phpfreaks.com/topic/197495-need-some-help-with-my-site/
Share on other sites

You shouldn't need to know any code to make a Wordpress menu appear in a certain order. In the admin area for each page is a place where you can set the order of the pages. 0 for left, 1 for the next, 2 for the one after that, and so on...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.