WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] MagzBook - Left Advertisement Options (3 posts)

  1. ashkwil
    Member
    Posted 1 year ago #

    Hi there,

    I am having trouble with a theme called MagzBook.

    Basically it has a column down the right hand side in which it displays all "Links" if i have a Link with the category "category1" it will display a header saying category1 then the images of all links under that category below (no limit on number of categories). So far I only have one category in use which is "Advertisements".

    Basically I want to make the left hand column (which currently shows new posts) the same thing however only showing links of a specific category (which is excluded from the right hand side giving me 2 separate sides to add advertisements)!

    How do I go about this?

    The current code for the right sidebar is:

    <div class="sidecont rightsector">
    		<div class="sidebar sidebar-right">
    
    			<div class="sidebaradbox">
        			<?php sidebar_ads_125(); ?>
        		</div>
    
    			<ul>
    				<?php
    						if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
    
    					<?php wp_list_bookmarks(); ?>
    
    				<?php endif; ?>
    			</ul>
    		<?php if(get_theme_option('ad_sidebar2_bottom') != '') {
    		?>
    		<div class="sidebaradbox">
    			<?php echo get_theme_option('ad_sidebar2_bottom'); ?>
    		</div>
    		<?php
    		}
    		?>
    		</div>
    
    	</div>

    How can I go about editing this code to do this? I have been trying to no avail!

    Thanks

  2. ashkwil
    Member
    Posted 1 year ago #

    I tried adding the following to the wp_list_bookmarks

    <div class="sidecont rightsector">
    		<div class="sidebar sidebar-right">
    
    			<div class="sidebaradbox">
        			<?php sidebar_ads_125(); ?>
        		</div>
    
    			<ul>
    				<?php
    						if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Right Sidebar') ) : ?>
    
    									<?php $args = array(
    	'category' => 1,
    	'order' => 'ASC',
    	'orderby' => 'name',
    	'categorize' => false,
    	'title_li' => false,
    	'before' => '<li>',
    	'after' => '</li>',
    	'show_images' => true,
    	'show_description ' => false,
    	'category_before' => false,
    	'category_after' => false,
    ); ?>
    
    	<?php wp_list_bookmarks($args); ?>
    
    				<?php endif; ?>
    			</ul>
    		<?php if(get_theme_option('ad_sidebar2_bottom') != '') {
    		?>
    		<div class="sidebaradbox">
    			<?php echo get_theme_option('ad_sidebar2_bottom'); ?>
    		</div>
    		<?php
    		}
    		?>
    		</div>
    
    	</div>

    So it was only displaying a certain category to no avail! Urgent help needed!

    Thanks

  3. ashkwil
    Member
    Posted 1 year ago #

    resovled

Topic Closed

This topic has been closed to new replies.

About this Topic