Title: resw's Replies | WordPress.org

---

# resw

  [  ](https://wordpress.org/support/users/resw/)

 *   [Profile](https://wordpress.org/support/users/resw/)
 *   [Topics Started](https://wordpress.org/support/users/resw/topics/)
 *   [Replies Created](https://wordpress.org/support/users/resw/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/resw/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/resw/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/resw/engagements/)
 *   [Favorites](https://wordpress.org/support/users/resw/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Photo Album Plus] Slider not working after shortcode conversion](https://wordpress.org/support/topic/slider-not-working-after-shortcode-conversion/)
 *  Thread Starter [resw](https://wordpress.org/support/users/resw/)
 * (@resw)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/slider-not-working-after-shortcode-conversion/#post-8677702)
 * Hi Jacob,
 * Thanks for your reply. Indeed it has a lot of typeerrors… i don’t know where 
   they vame from. As said beford this happened after converting (automaticaly) 
   the codes. Is there an ‘easy way out’ of easy way to fix this problem? I’m a 
   bit of a js noob and more the visual designer 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Types Order] Post Type Order Stops Random Header Image Showing](https://wordpress.org/support/topic/post-type-order-stops-random-header-image-showing/)
 *  [resw](https://wordpress.org/support/users/resw/)
 * (@resw)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/post-type-order-stops-random-header-image-showing/#post-3395049)
 * I fixed that last one. Got the site running again but now the sidebar images 
   are still fixed but flipped around from back to front. ? LOL. I think i will 
   need some serious lessons first.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Types Order] Post Type Order Stops Random Header Image Showing](https://wordpress.org/support/topic/post-type-order-stops-random-header-image-showing/)
 *  [resw](https://wordpress.org/support/users/resw/)
 * (@resw)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/post-type-order-stops-random-header-image-showing/#post-3395048)
 * Pfff. One thing i did find out, i’m not as stupid as i thought. I found (with
   Dreamweaver!) all the query, altered them by adding ‘orderby’ => ‘menu_order’,
   <—–with the comma!.
    Saved it all, dropped it in with filezilla and he presto,
   this is what my screen said…
 * Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ‘)’
   in /public/sites/www.rentadesigner.info/wp-content/themes/architekttheme/functions.
   php on line 363
 * Still not working…
    should i give up? ~_~
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Post Types Order] Post Type Order Stops Random Header Image Showing](https://wordpress.org/support/topic/post-type-order-stops-random-header-image-showing/)
 *  [resw](https://wordpress.org/support/users/resw/)
 * (@resw)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/post-type-order-stops-random-header-image-showing/#post-3395046)
 * I wish it was simple and it probably is. But i think i just don’t get it… I’m
   also more a copy/paste ‘builder’. :S
    I tried adding the ‘orderby’ => ‘menu_order’
   in the sidebar.php and it looked something like this:
 *     ```
       <?php
       /*
         Template Name: Portfolio
       */
       ?>
   
       <?php get_header(); ?>
   
           <div id="single_container">
   
             <?php
             $args = array(
                          'category_name' => 'portfolio',
                          'post_type' => 'post',
                          'posts_per_page' => 21,
       		   'orderby' => 'menu_order'
                          'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
                          );
             query_posts($args);
             $x = 0;
             while (have_posts()) : the_post(); ?>                
   
               <?php if($x == 2) { ?>
               <div class="port_box port_box_last">
               <?php } else { ?>
               <div class="port_box">
               <?php } ?>
                 <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('featured-port-listing'); ?></a>
                 <h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
               </div><!--//port_box-->      
   
               <?php if($x == 2) { echo '<div class="clear"></div><div class="port_box_divider"></div>'; $x = -1; } ?>
   
             <?php $x++; ?>
             <?php endwhile; ?>
             <div class="clear"></div>
             <div class="navigation">
               <div class="left"><?php previous_posts_link('&laquo; Previous') ?></div>
               <div class="right"><?php next_posts_link('Next &raquo;') ?></div>
               <div class="clear"></div>
             </div><!--//nagivation-->
             <?php wp_reset_query(); ?>                  
   
             <div class="clear"></div>
   
           </div><!--//single_container-->
   
       <?php get_footer(); ?>
       ```
   
 * Is this the right place to add it? Or did i have to put it somewhere else/instead
   of something else? And, next question where else? In every php file? I’m a dreamweaver
   dummy so adding it manually in the WP editor is somewhat easier for me.

Viewing 4 replies - 1 through 4 (of 4 total)