Suevia
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: Change position of added widgetized area in homepageOk, Alchymith. That was very helpful. I moved the code to the right place and… it works!
Thank you so so much
Forum: Fixing WordPress
In reply to: Change position of added widgetized area in homepageI pasted the code at the very bottom!
Forum: Fixing WordPress
In reply to: Change position of added widgetized area in homepageHey, Alchymyth,
The full cod of home.php:
<?php get_header(); ?> <?php $stickies = get_option('sticky_posts'); rsort($stickies); $slideshow_cat = arras_get_option('slideshow_cat'); $featured1_cat = arras_get_option('featured1_cat'); $featured2_cat = arras_get_option('featured2_cat'); $news_cat = arras_get_option('news_cat'); $slideshow_count = (int)arras_get_option('slideshow_count'); $featured1_count = (int)arras_get_option('featured1_count'); $featured2_count = (int)arras_get_option('featured2_count'); $post_blacklist = array(); ?> <div id="content" class="section"> <?php arras_above_content() ?> <?php if (!$paged) : ?> <?php if ( $featured1_cat !== '' && arras_get_option('enable_featured1') ) : ?> <?php arras_above_index_featured1_post() ?> <!-- Featured Articles #1 --> <div id="index-featured1"> <?php if ( arras_get_option('featured1_title') != '' ) : ?> <div class="home-title"><?php _e( arras_get_option('featured1_title'), 'arras' ) ?></div> <?php endif; arras_featured_loop( arras_get_option('featured1_display'), apply_filters('arras_featured1_query', array( 'list' => $featured1_cat, 'taxonomy' => arras_get_option('featured1_tax'), 'query' => array( 'posts_per_page' => $featured1_count, 'exclude' => $post_blacklist, 'post_type' => arras_get_option('featured1_posttype') ) ) ) ); ?> </div><!-- #index-featured1 --> <?php endif ?> <?php if ( $featured2_cat !== '' && arras_get_option('enable_featured2') ) : ?> <?php arras_above_index_featured2_post() ?> <!-- Featured Articles #2 --> <div id="index-featured2"> <?php if ( arras_get_option('featured2_title') != '' ) : ?> <div class="home-title"><?php _e( arras_get_option('featured2_title'), 'arras' ) ?></div> <?php endif; arras_featured_loop( arras_get_option('featured2_display'), apply_filters('arras_featured2_query', array( 'list' => $featured2_cat, 'taxonomy' => arras_get_option('featured2_tax'), 'query' => array( 'posts_per_page' => $featured2_count, 'exclude' => $post_blacklist, 'post_type' => arras_get_option('featured2_posttype') ) ) ) ); ?> </div><!-- #index-featured2 --> <?php endif; ?> <?php if ( arras_get_option('enable_news') ) : ?> <?php arras_above_index_news_post() ?> <!-- News Articles --> <div id="index-news"> <?php if ( arras_get_option('news_title') != '' ) : ?> <div class="home-title"><?php _e( arras_get_option('news_title') ) ?></div> <?php endif ?> <?php $news_query_args = apply_filters('arras_news_query', array( 'list' => $news_cat, 'taxonomy' => arras_get_option('news_tax'), 'query' => array( 'posts_per_page' => arras_get_option('index_count'), 'exclude' => $post_blacklist, 'post_type' => arras_get_option('news_posttype'), 'paged' => $paged ) ) ); $news_query = arras_prep_query($news_query_args); query_posts($news_query); arras_featured_loop( arras_get_option('news_display'), $news_query_args, true ); if(function_exists('wp_pagenavi')) wp_pagenavi(); else { ?> <div class="navigation clearfix"> <div class="floatleft"><?php next_posts_link( __('Older Entries', 'arras') ) ?></div> <div class="floatright"><?php previous_posts_link( __('Newer Entries', 'arras') ) ?></div> </div> <?php } ?> </div><!-- #index-news --> <?php arras_below_index_news_post() ?> <?php endif; ?> <?php $sidebars = wp_get_sidebars_widgets(); ?> <div id="bottom-content-1"> <?php if ( isset($sidebars['sidebar-4']) ) : ?> <ul class="clearfix xoxo"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Content #1') ) : ?> <li></li> <?php endif; ?> </ul> <?php endif; ?> </div> <div id="bottom-content-2"> <?php if ( isset($sidebars['sidebar-5']) ) : ?> <ul class="clearfix xoxo"> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Bottom Content #2') ) : ?> <li></li> <?php endif; ?> </ul> <?php endif; ?> </div> <?php else: ?> <?php if ( arras_get_option('news_title') != '' ) : ?> <div class="home-title"><?php _e( arras_get_option('news_title') ) ?></div> <?php endif ?> <div id="archive-posts"> <?php arras_render_posts(null, arras_get_option('archive_display')) ?> <?php if(function_exists('wp_pagenavi')) wp_pagenavi(); else { ?> <div class="navigation clearfix"> <div class="floatleft"><?php next_posts_link( __('Older Entries', 'arras') ) ?></div> <div class="floatright"><?php previous_posts_link( __('Newer Entries', 'arras') ) ?></div> </div> <?php } ?> </div><!-- #archive-posts --> <?php endif; ?> <?php arras_below_content() ?> </div><!-- #content --> <?php get_sidebar(); ?> <?php get_footer(); ?> <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage Widget 1') ) : ?> <p>This area is widget ready.</p> <?php endif; ?>Thank you so much for answering
Viewing 3 replies - 1 through 3 (of 3 total)