Forums

Indomagz 2.0 (19 posts)

  1. Member111
    Member
    Posted 4 months ago #

    Hello,

    I am using the following theme: http://www.magznetwork.com/wordpress-themes/indomagz-free-premium-wordpress-theme.html

    However, after installing it on http://alzahra.org.uk/alzahra/ it does not display the same as the sample on the site that let the theme out, as in it doesn't show the posts underneath the sticky, nor does it show any breadcrumb images.

    Please advise.

    Thanks.

  2. MichaelH
    moderator
    Posted 4 months ago #

    That theme seems to be expecting posts in Category ID 1.

    For instance in that theme's home.php it has code similar to this in 5 or 6 places

    <?php $recent = new WP_Query("cat=1&showposts=3"); ?>

    So you will want to change the cat=1 to cat=x where x is your category ID for the posts you want displayed in the various sections.

  3. MichaelH
    moderator
    Posted 4 months ago #

    does it show any breadcrumb images

    That theme has a folder of recommended plugins so you have to install that 'older' version of the Breadcrumb Nav plugin.

    If you use the current Breadcrumb Navt plugin, you will need to fix the theme to use the correct functions:
    e.g. change breadcrumb_nav_xt_display() to bcn_display()

  4. Member111
    Member
    Posted 4 months ago #

    So you will want to change the cat=1 to cat=x where x is your category ID for the posts you want displayed in the various sections.

    Thanks, I have just set a category so posts show up, and it works.

    That theme has a folder of recommended plugins so you have to install that 'older' version of the Breadcrumb Nav plugin.

    I uninstalled the upgraded version and reinstalled the recommended plugins, without upgrading it. Do I still need to put

    bcn_display()

    in? Because by reinstalling the old plugings (recommended plugins), the images do not show.

    Thank you for your help.

    [moderated--bump removed. Please refrain from bumping as per Forum Rules]

  5. MichaelH
    moderator
    Posted 4 months ago #

    To get the Breadcrumb Navt links I had to change breadcrumb_nav_xt_display() to bcn_display()

    Not sure about the icon thing you mention.

  6. Member111
    Member
    Posted 4 months ago #

    Where can I find that from, which file is it in?

  7. MichaelH
    moderator
    Posted 4 months ago #

    It was at least in that theme's index.php.

    Get http://wingrep.com and use that to search that theme folder for "breadcrumb_nav_xt_display"

  8. Member111
    Member
    Posted 4 months ago #

    Does it take the breadcrumb image automatically from the post?

    There must be something wrong with my code:

    index.php

    <?php $temp_query = $wp_query; ?>
    <?php get_header(); ?>
    
    <div id="content">
    
    	<?php if (function_exists
    
    ('breadcrumb_nav_xt_display')) {
    	if (!is_home()) {
    
    echo '<div class="breadcrumb">';
    	bcn_display();
    
    echo '</div>';
    	} } ?>
    
    	<?php if (have_posts()) : 
    
    ?>
    		<?php while (have_posts()) : the_post(); 
    
    ?>
    			<div class="post" id="post-<?php 
    
    the_ID(); ?>">
    				<h1><a href="<?
    
    php the_permalink() ?>" rel="bookmark" title="Permanent 
    
    Link to <?php the_title_attribute(); ?>"><?php the_title
    
    (); ?></a></h1>
    				<div 
    
    class="entry">
    					<?php 
    
    the_content("<br />Read more..."); ?>
    
    </div>
    				<div 
    
    style="clear:both;"></div>
    
    <div class="postmeta">
    
    <span class="post-author"><?php the_author(); ?></span>
    
    			<span class="post-calendar"><?php 
    
    the_time('j F Y'); ?></span>
    
    <span class="post-category"><?php the_category(', '); ?
    
    ></span>
    					<?php if
    
    (function_exists('the_tags')) : ?>
    
    		<?php the_tags('<span class="post-tag">', 
    
    ', ', '</span>'); ?> 
    
    <?php endif; ?>
    					<span 
    
    class="post-comment"><?php comments_popup_link('No 
    
    Comments', '1 Comment', '% Comments'); ?></span>
    
    			<?php if ($user_ID) : ?>
    
    				<span class="post-
    
    edit"><?php edit_post_link(__
    
    ('Edit',TEMPLATE_DOMAIN),'',''); ?></span>
    
    		<?php endif; ?>
    
    </div>
    			</div>
    
    		<?php endwhile; 
    
    ?>
    
    	<div class="navigation">
    	<?php if
    
    (function_exists('wp_pagenavi')) : wp_pagenavi(); else : 
    
    ?>
    	<div class="alignleft"><?php next_posts_link
    
    ('&laquo; Older Entries') ?></div>
    	<div 
    
    class="alignright"><?php previous_posts_link('Newer 
    
    Entries &raquo;') ?></div>
    	<hr class="clear"/>
    
    <?php endif; ?>
    	</div>
    
    	<?php else : ?>
    
    		<div 
    
    class="post">
    			<h2 class="headtitle 
    
    center">Not Found</h2>
    			<p 
    
    class="center">Sorry, but you are looking for something 
    
    that isn't here.</p>
    			<center><?php 
    
    include (TEMPLATEPATH . "/searchform.php"); ?></center>
    
    </div>
    
    	<?php endif; ?>
    
      </div><!--/content -->
    
    <?php 
    
    get_sidebar(); ?>
    
    <?php get_footer(); ?>
  9. MichaelH
    moderator
    Posted 4 months ago #

    You need to REPLACE all instances of breadcrumb_nav_xt_display...

  10. Member111
    Member
    Posted 4 months ago #

    Did that here, to no avail.

    <?php $temp_query = $wp_query; ?>
    <?php get_header(); ?>
    
      <div id="content">
    
    	<?php if (function_exists('bcn_display')) {
    	if (!is_home()) {
    	echo '<div class="breadcrumb">';
    	bcn_display();
    	echo '</div>';
    	} } ?>
    
    	<?php if (have_posts()) : ?>
    		<?php while (have_posts()) : the_post(); ?>
    			<div class="post" id="post-<?php the_ID(); ?>">
    				<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
    				<div class="entry">
    					<?php the_content("<br />Read more..."); ?>
    				</div>
    				<div style="clear:both;"></div>
    				<div class="postmeta">
    					<span class="post-author"><?php the_author(); ?></span>
    					<span class="post-calendar"><?php the_time('j F Y'); ?></span>
    					<span class="post-category"><?php the_category(', '); ?></span>
    					<?php if(function_exists('the_tags')) : ?>
    						<?php the_tags('<span class="post-tag">', ', ', '</span>'); ?>
    					<?php endif; ?>
    					<span class="post-comment"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span>
    					<?php if ($user_ID) : ?>
    						<span class="post-edit"><?php edit_post_link(__('Edit',TEMPLATE_DOMAIN),'',''); ?></span>
    					<?php endif; ?>
    				</div>
    			</div>
    
    		<?php endwhile; ?>
    
    	<div class="navigation">
    	<?php if(function_exists('wp_pagenavi')) : wp_pagenavi(); else : ?>
    	<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
    	<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
    	<hr class="clear"/>
    	<?php endif; ?>
    	</div>
    
    	<?php else : ?>
    
    		<div class="post">
    			<h2 class="headtitle center">Not Found</h2>
    			<p class="center">Sorry, but you are looking for something that isn't here.</p>
    			<center><?php include (TEMPLATEPATH . "/searchform.php"); ?></center>
    		</div>
    
    	<?php endif; ?>
    
      </div><!--/content -->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
  11. Member111
    Member
    Posted 4 months ago #

    This might help, do they get replaced after updating the breadcrumb plugins?

  12. Member111
    Member
    Posted 4 months ago #

    I upgraded it, code is as above, still no luck?

  13. MichaelH
    moderator
    Posted 4 months ago #

    When I change all instances of that in all templates of that theme the breadcrumbs work and they seem to be working for you at least on the date archive I viewed.

    Maybe there's something I'm missing.

  14. Member111
    Member
    Posted 4 months ago #

    Would it be possible to paste the code of your file so I can replace mine with it and see if it works? There may be an error in mine. Since it doesn't work here.

  15. MichaelH
    moderator
    Posted 4 months ago #

    You mean this in index.php

    <?php if (function_exists('bcn_display')) {
    	if (!is_home()) {
    	echo '<div class="breadcrumb">';
    	bcn_display();
    	echo '</div>';
    	} } ?>

    Use http://wingrep.com to find the other instances to change...

  16. Member111
    Member
    Posted 4 months ago #

    I've done all, here is a zipped version of my theme with that: http://www.alzahra.org.uk/indomagz_2

  17. Member111
    Member
    Posted 3 months ago #

    Any help regarding this?

  18. MichaelH
    moderator
    Posted 3 months ago #

    Breadcrump trail working just fine for me with your version.

  19. Member111
    Member
    Posted 3 months ago #

    Hmm, what would be the problem then? When I go to http://alzahra.org.uk/alzahra/ I can't see the images in the breadcrumb, do I have to do anything in the settings or in the post? Thanks.

Reply

You must log in to post.

About this Topic

Tags