Breadcrumb on index.php


Hey Beanser,

i use for the blog-page a index.php. The breadcrumb fires by function in functions.php in content und footer. But on the index.php the breadcrumb seems completly deactivated. Can i reactive them, oder give it another solutions for a native custom blog-page?

Thanks, Marcus

beans_modify_action_callback( 'beans_loop_template', 'news_loop' );
function news_loop() {
?>

    <div class="content-wrap uk-container-center">

    <?php // START HEAD CONTENT ---------------------------------------------------------------------- ?>

        <section class="content-section boxed head-section">
            <div class="uk-container uk-container-center">          

                <header class="page-header">
                    <h1>How can i display ne Blog-Page-Title?</h1>
                </header>
            </div>
        </section>     

        <section class="content-section boxed <?php echo $device_visibility; ?> <?php echo $section_layout; ?>">
            <div class="uk-container uk-container-center section-content">
                <div class="innerwrap"> 

                    <div class="uk-grid" data-uk-grid-margin data-uk-grid-match>
                    <?php

                    if ( have_posts() && !is_404() ) : while ( have_posts() ) : the_post(); ?>

                            <?php
                                $read_more = get_field('option_excerpt_text', $general_options_page);
                            ?>

                            <div class="the-post uk-width-medium-1-1 content_posts">
                                <div class="innerwrap postslayout">

                                    <article class="last-post uk-grid">

                                        <div class="uk-width-medium-2-5">
                                            <header class="section-header">

                                                    <?php beans_post_image(); ?>

                                            </header>
                                        </div>

                                        <div class="uk-width-medium-3-5 content-col">
                                            <div class="article-content-wrap">

                                                <?php the_date('', '<div class="post-date">', '</div>'); ?>

                                                <h4 class="article-headline"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4>

                                                <div class="article-content"><?php the_excerpt(); ?></div>

                                                <a class="readmore" href="<?php the_permalink(); ?>" rel="bookmark" title="Zum Artikel"><?php echo $read_more; ?></a>

                                            </div>
                                        </div>

                                    </article>

                                </div>
                            </div>

                        <?php endwhile; else : ?>
                            <div class="uk-alert">No Posts</div>
                        <?php endif; ?>

                    </div>

                    <?php beans_posts_pagination(); ?>
                </div>
            </div>
        </section>
    </div>

<?php } ?>

Write a reply

Login or register to write a reply, it's free!