lmcookie62 (@lmcookie62)

Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • In reply to: Two forum index pages?

    @lmcookie62

    Participant

    Ok will do, thanks very much for your help

    In reply to: Two forum index pages?

    @lmcookie62

    Participant

    Hi there, thanks for this. I have made the change but i dont see any change. I also dont really understand how this would fix the breadcrumb issue…?

    In reply to: Two forum index pages?

    @lmcookie62

    Participant

    Here it is: thanks

    <?php get_header(); ?>

    <?php
    /** Themify Default Variables
    * @var object */
    global $themify;
    ?>

    <!– layout-container –>
    <div id=”layout” class=”clearfix pagewidth”>

    <?php themify_content_before(); //hook ?>
    <!– content –>
    <div id=”content” class=”clearfix”>
    <?php themify_content_start(); //hook ?>

    <?php
    /////////////////////////////////////////////
    // 404
    /////////////////////////////////////////////
    ?>
    <?php if(is_404()): ?>
    <h1 class=”page-title” itemprop=”name”><?php _e(‘404′,’themify’); ?></h1>
    <p><?php _e( ‘Page not found.’, ‘themify’ ); ?></p>
    <?php endif; ?>

    <?php
    /////////////////////////////////////////////
    // PAGE
    /////////////////////////////////////////////
    ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div id=”page-<?php the_ID(); ?>” class=”type-page” itemscope itemtype=”http://schema.org/Article”&gt;

    <!– page-title –>
    <?php if($themify->page_title != “yes”): ?>
    <h1 class=”page-title” itemprop=”name”><?php the_title(); ?></h1>
    <?php endif; ?>
    <!– /page-title –>

    <div class=”page-content entry-content” itemprop=”articleBody”>

    <?php the_content(); ?>

    <?php wp_link_pages(array(‘before’ => ‘<p>‘.__(‘Pages:’,’themify’).’ ‘, ‘after’ => ‘</p>’, ‘next_or_number’ => ‘number’)); ?>

    <?php edit_post_link(__(‘Edit’,’themify’), ‘[‘, ‘]’); ?>

    <!– comments –>
    <?php if(!themify_check(‘setting-comments_pages’) && $themify->query_category == “”): ?>
    <?php comments_template(); ?>
    <?php endif; ?>
    <!– /comments –>

    </div>
    <!– /page-content –>

    </div><!– /.type-page –>
    <?php endwhile; endif; ?>

    <?php
    /////////////////////////////////////////////
    // Query Category
    /////////////////////////////////////////////
    ?>

    <?php
    ///////////////////////////////////////////
    // Setting image width, height
    ///////////////////////////////////////////
    if($themify->query_category != “”): ?>

    <?php if(themify_get(‘section_categories’) != ‘yes’): ?>

    <?php query_posts( apply_filters( ‘themify_query_posts_page_args’, ‘cat=’.$themify->query_category.’&posts_per_page=’.$themify->posts_per_page.’&paged=’.$themify->paged.’&order=’.$themify->order.’&orderby=’.$themify->orderby ) ); ?>

    <?php if(have_posts()): ?>

    <!– loops-wrapper –>
    <div id=”loops-wrapper” class=”loops-wrapper <?php echo $themify->layout . ‘ ‘ . $themify->post_layout; ?>”>

    <?php while(have_posts()) : the_post(); ?>

    <?php get_template_part(‘includes/loop’, ‘query’); ?>

    <?php endwhile; ?>

    </div>
    <!– /loops-wrapper –>

    <?php if ($themify->page_navigation != “yes”): ?>
    <?php get_template_part( ‘includes/pagination’); ?>
    <?php endif; ?>

    <?php else : ?>

    <?php endif; ?>

    <?php else: ?>

    <?php $categories = explode(“,”,str_replace(” “,””,$themify->query_category)); ?>

    <?php foreach($categories as $category): ?>

    <?php $category = get_term_by(is_numeric($category)? ‘id’: ‘slug’, $category, ‘category’);
    $cats = get_categories( array( ‘include’ => isset( $category ) && isset( $category->term_id )? $category->term_id : 0, ‘orderby’ => ‘id’ ) ); ?>

    <?php foreach($cats as $cat): ?>

    <?php query_posts( apply_filters( ‘themify_query_posts_page_args’, ‘cat=’.$cat->cat_ID.’&posts_per_page=’.$themify->posts_per_page.’&paged=’.$themify->paged.’&order=’.$themify->order.’&orderby=’.$themify->orderby ) ); ?>

    <?php if(have_posts()): ?>

    <!– category-section –>
    <div class=”category-section clearfix <?php echo $cat->slug; ?>-category”>

    <h3 class=”category-section-title”>cat_ID) ); ?>” title=”<?php _e(‘View more posts’, ‘themify’); ?>”><?php echo $cat->cat_name; ?></h3>

    <!– loops-wrapper –>
    <div id=”loops-wrapper” class=”loops-wrapper <?php echo $themify->layout . ‘ ‘ . $themify->post_layout; ?>”>
    <?php while(have_posts()) : the_post(); ?>

    <?php get_template_part(‘includes/loop’, ‘query’); ?>

    <?php endwhile; ?>
    </div>
    <!– /loops-wrapper –>

    <?php if ($themify->page_navigation != “yes”): ?>
    <?php get_template_part( ‘includes/pagination’); ?>
    <?php endif; ?>

    </div>
    <!– /category-section –>

    <?php else : ?>

    <?php endif; ?>

    <?php endforeach; ?>

    <?php endforeach; ?>

    <?php endif; ?>

    <?php endif; ?>
    <?php wp_reset_query(); ?>

    <?php themify_content_end(); //hook ?>
    </div>
    <!– /content –>
    <?php themify_content_after() //hook; ?>

    <?php
    /////////////////////////////////////////////
    // Sidebar
    /////////////////////////////////////////////
    if ($themify->layout != “sidebar-none”): get_sidebar(); endif; ?>

    </div>
    <!– /layout-container –>

    <?php get_footer(); ?>

    In reply to: Two forum index pages?

    @lmcookie62

    Participant

    Thank you for your reply.

    I’ve had a look at the article but unfortunately i’m not much further with this. I only have one page template – the default page.php and i’ve tried creating a bbpress page template as described but this doesnt change anything. I can’t see in my page.php any reference to a different style for the index page.

    If feels like i should focus first on sorting out my breadcrumb/structural issue. I can’t understand why my site isnt using the page name in the breadcrumb as appears to be the case on other example bbpress sites. See here.

    The example site uses the default slugs whilst the breadcrumb uses the page name – as you’d expect. I’m not clear what to do to get my site working in this way which would get rid of my double index page issue.

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