Layout – Webdesign

0,00 / maand excl. BTW

Layout kiezen / webdesign aanpassen

Ander webdesign / layout? Dat kan hier heel gemakkelijk!

  1. Gratis: Kies één van de voor geprogrammeerde layouts.
  2. Gratis: Pas je gekozen webdesign naar wens aan.
  3. Kies hier een andere gratis layout: Gratis implementatie.
  4. Kies een andere gratis layout: Vergoeding voor implementatie.
  5. Kies een betaald thema: Vergoeding voor implementatie.
  6. Laat een layout voor je maken.

Andere Layout

Ander Webdesign

Wat kunnen wij voor je doen?

Eénmalige betaling

1. Om welk webdesign gaat het (naam)
2. Waar kunnen wij het vinden
3. Als het in een account staat, mogen wij dan inlog-gegevens opdat wij het kunnen uploaden

Het verwijderen van webdesigns bespaart webruimte. Als er een webdesign extra op je website / webshop wordt gezet, dan kost dat webruimte.

Prijs per maand

Categorie:

Beschrijving

Forums / Algemeen WordPress / Verkeerde volgorde van posts

  • Op mijn website worden aan de rechterzijde (in de menubalk) de laatste 10 artikelen weergegeven.

    Alleen… de volgorde is verkeerd. M.a.w. de oudste post staat bovenaan en de nieuwste wordt er niet meer bijgezet omdat er inmiddels > 10 posts zijn.

    Iemand enig idee welk stuke code ik moet aanpassen om de nieuwste post bovenaan krijg?

    Alvast hartelijk dank!

5 reacties aan het bekijken - 1 tot 5 (van in totaal 5)
  • Kan je de huidige code in de sidebar (sidebar.php) met ons delen?

    Thread starter gsteeman

    (@gsteeman)

    Jazeker:

    <!– begin sidebar –>

    <div id=”menu”>

      <table cellspacing=”0″ cellpadding=”0″ width=”200px” style=”margin-top:5px;”>
      <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rulu.gif” alt=”rulu”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruru.gif” alt=”ruru”></td></tr>
      <form id=”searchform” method=”get” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”>
      <tr class=”z1″><td class=”z1″></td><td>
      <table cellspacing=”0″ cellpadding=”0″ class=”n1″ width=”100%”>
      <tr valign=”top”><td class=”grrlu”></td><td class=”grrru”></td></tr>
      <tr><td align=”center”><input type=”text” name=”s” id=”s” /></td><td><input type=”image” src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/search.gif” /></td></tr>
      </table>
      </td><td class=”z1″></td></tr>
      </form>
      <tr height=”7px”><td><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruld.gif” alt=”ruld”></td><td class=”z1″></td><td><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rurd.gif” alt=”rurd”></td></tr>
      </table>
      <? if ($pages_html=wp_list_pages(“echo=0”) ){ ?>

      <table cellspacing=”0″ cellpadding=”0″ width=”200px” style=”margin-top:5px;”>
      <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rulu.gif” alt=”rulu”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruru.gif” alt=”ruru”></td></tr>
      <tr class=”z1″><td class=”z1″></td><td>
      <table cellspacing=”0″ cellpadding=”0″ class=”n1″ width=”100%”>
      <tr valign=”top”><td class=”grrlu”></td><td class=”grrru”></td></tr>
      <tr><td colspan=”2″><?=$pages_html?></td></tr>
      </table>
      </td><td class=”z1″></td></tr>
      <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruld.gif” alt=”ruld”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rurd.gif” alt=”rurd”></td></tr>
      </table>

      <?php
      }
      ?>

      <table cellspacing=”0″ cellpadding=”0″ border=”0″ width=”200px” style=”margin-top:5px;”>
      <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rulu.gif” alt=”rulu”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruru.gif” alt=”ruru”></td></tr>
      <tr class=”z1″><td class=”z1″></td><td>
      <table cellspacing=”0″ cellpadding=”0″ class=”n1″ width=”100%”>
      <tr valign=”top”><td class=”grrlu”></td><td class=”grrru”></td></tr>
      <tr><td colspan=”2″>
      <li id=”categories”><?php _e(‘Rubrieken:’); ?>

      <?php wp_list_cats(‘sort_column=name&optioncount=1&hierarchical=0’); ?>

    </td></tr>
    </table>
    </td><td class=”z1″></td></tr>
    <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruld.gif” alt=”ruld”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rurd.gif” alt=”rurd”></td></tr>
    </table>

    <table cellspacing=”0″ cellpadding=”0″ border=”0″ width=”200px” style=”margin-top:5px;”>
    <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rulu.gif” alt=”rulu”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruru.gif” alt=”ruru”></td></tr>
    <tr class=”z1″><td class=”z1″></td><td>
    <table cellspacing=”0″ cellpadding=”0″ class=”n1″ width=”100%”>
    <tr valign=”top”><td class=”grrlu”></td><td class=”grrru”></td></tr>
    <tr><td colspan=”2″>
    <li id=”archives”><?php _e(‘Nieuwste artikelen:’); ?>

    </td></tr>
    </table>
    </td><td class=”z1″></td></tr>
    <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruld.gif” alt=”ruld”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rurd.gif” alt=”rurd”></td></tr>
    </table>

    <table cellspacing=”0″ cellpadding=”0″ border=”0″ width=”200px” style=”margin-top:5px;”>
    <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rulu.gif” alt=”rulu”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruru.gif” alt=”ruru”></td></tr>
    <tr class=”z1″><td class=”z1″></td><td>
    <table cellspacing=”0″ cellpadding=”0″ class=”n1″ width=”100%”>
    <tr valign=”top”><td class=”grrlu”></td><td class=”grrru”></td></tr>
    <tr><td colspan=”2″>
    <li id=”archives”><?php _e(‘Archief:’); ?>

      <?php wp_get_archives(’type=monthly’); ?>

    </td></tr>
    </table>
    </td><td class=”z1″></td></tr>
    <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruld.gif” alt=”ruld”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rurd.gif” alt=”rurd”></td></tr>
    </table>

    <table cellspacing=”0″ cellpadding=”0″ border=”0″ width=”200px” style=”margin-top:5px;”>
    <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rulu.gif” alt=”rulu”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruru.gif” alt=”ruru”></td></tr>
    <tr class=”z1″><td class=”z1″></td><td>
    <table cellspacing=”0″ cellpadding=”0″ class=”n1″ width=”100%”>
    <tr valign=”top”><td class=”grrlu”></td><td class=”grrru”></td></tr>
    <tr><td colspan=”2″>
    <li id=”categories”><?php _e(‘Links:’); ?>

      <?php get_links(‘-1’, ‘

    • ‘, ‘
    • ‘, ”, 0, ‘name’, 0, 0, -1, 0); ?>

    </td></tr>
    </table>
    </td><td class=”z1″></td></tr>
    <tr><td width=”7px”>
    <img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruld.gif” alt=”ruld”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rurd.gif” alt=”rurd”></td></tr>
    </table>

    <!–
    <table cellspacing=”0″ cellpadding=”0″ border=”0″ width=”200px” style=”margin-top:5px;”>
    <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rulu.gif” alt=”rulu”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruru.gif” alt=”ruru”></td></tr>
    <tr class=”z1″><td class=”z1″></td><td>
    <table cellspacing=”0″ cellpadding=”0″ class=”n1″ width=”100%”>
    <tr valign=”top”><td class=”grrlu”></td><td class=”grrru”></td></tr>
    <tr><td colspan=”2″>
    <li id=”meta”><?php _e(‘Meta:’); ?>

    </td></tr>
    </table>

    </td><td class=”z1″></td></tr>
    <tr><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/ruld.gif” alt=”ruld”></td><td class=”z1″></td><td width=”7px”><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/rurd.gif” alt=”rurd”></td></tr>
    –></table>

    </div>
    <!– end sidebar –>

    je gebruikt get_posts() om je posts op te halen maar er staat niet bij hoe het moet worden gesorteerd.
    probeer het volgende:

    $posts = get_posts('numberposts=15&offset=0&orderby=post_date&order=desc');

    Dan worden de posts gesorteerd op datum met de laatste bovenaan.

    Thread starter gsteeman

    (@gsteeman)

    Beste macbrink,

    Bedankt voor je antwoord, maar helaas staan de posts nog steeds op de verkeerde volgorde :-s

    @gsteeman,
    Misschien ligt het aan de MySQL versie.

    zie ook: http://wordpress.org/support/topic/154622

5 reacties aan het bekijken - 1 tot 5 (van in totaal 5)

Het onderwerp ‘Verkeerde volgorde van posts’ is gesloten voor nieuwe reacties.