• tava funcionando tudo direitinho, mais agora come?ou a dar esse erro que eu clico no menu para mudar de pagina e apenas o link muda, o conteúdo da pagina sempre fica o mesmo, sempre fica o conteudo da pagina inicial…

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter shakaryan

    (@shakaryan)

    ae ta o código da minha pagina index.php

    <?php
    /**
     * The main template file.
     *
     * This is the most generic template file in a WordPress theme
     * and one of the two required files for a theme (the other being style.css).
     * It is used to display a page when nothing more specific matches a query.
     * E.g., it puts together the home page when no home.php file exists.
     * Learn more: https://codex.www.ads-software.com/Template_Hierarchy
     *
     */
    ?>
    <?php get_header(); ?>
    <!--Start Page Content -->
    <div class="page-content-container">
        <div class="container_24">
            <div class="grid_24">
                <div class="page-content">
                    <div class="grid_sub_16 sub_alpha">
                        <div class="content-bar">
                            <!--Start Post-->
                            <?php get_template_part('loop', 'index'); ?>
                            <!--End Post-->
                            <div class="clear"></div>
                            <nav id="nav-single"> <span class="nav-previous">
                                    <?php next_posts_link(__('&larr; Older posts', 'bizway')); ?>
                                </span> <span class="nav-next">
                                    <?php previous_posts_link(__('Newer posts &rarr;', 'bizway')); ?>
                                </span> </nav>
                        </div>
                    </div>
                    <div class="grid_sub_8 sub_omega">
                        <!--Start Sidebar-->
                        <?php get_sidebar(); ?>
                        <!--End Sidebar-->
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <?php get_footer(); ?>

    Thread Starter shakaryan

    (@shakaryan)

    e o código da blog.php tbm

    <?php
    /*
      Template Name: Blog Page
     */
    ?>
    <?php get_header(); ?>
    <!--Start Page Heading -->
    <div class="page-heading-container">
        <div class="container_24">
            <div class="grid_24">
                <div class="page-heading">
                    <h1><?php the_title(); ?></h1>
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <!--End Page Heading -->
    <!--Start Page Content -->
    <div class="page-content-container">
        <div class="container_24">
            <div class="grid_24">
                <div class="page-content">
                    <div class="grid_sub_16 sub_alpha">
                        <div class="content-bar">
                            <?php
                            $limit = get_option('posts_per_page');
                            $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
                            query_posts('showposts=' . $limit . '&paged=' . $paged);
                            $wp_query->is_archive = true;
                            $wp_query->is_home = false;
                            ?>
                            <!-- Start the Loop. -->
                            <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                                    <!--post start-->
                                    <div class="post">
                                        <h1 class="post_title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
                                        <div class="post_date">
                                            <ul class="date">
                                                <li class="day"><?php echo get_the_time('M') ?></li>
                                                <li class="month"><?php echo get_the_time('d') ?></li>
                                            </ul>
                                        </div>
                                        <ul class="post_meta">
                                            <li class="posted_by"><span><?php _e( 'Posted by', 'bizway' ); ?></span>&nbsp;&nbsp; <?php the_author_posts_link(); ?></li>
                                            <li class="post_category"><span><?php _e( 'Posted in', 'bizway' ); ?></span>&nbsp;&nbsp;<?php the_category(', '); ?></li>
                                            <?php if (comments_open()) : ?>
                                                <li class="post_comment"><?php comments_popup_link('', '1', '%'); ?></li>
                                            <?php endif; ?>
                                        </ul>
                                        <div class="post_content">
                                            <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) { ?>
                                                <?php bizway_get_thumbnail(200, 156); ?>
                                            <?php } else { ?>
                                                <?php bizway_get_image(200, 156); ?>
                                                <?php
                                            }
                                            ?>
                                            <?php the_excerpt(); ?>
                                            <a class="read_more" href="<?php the_permalink() ?>"><?php _e( 'read more', 'bizway' ); ?></a> </div>
                                    </div>
                                    <!--End Post-->
    
                                <?php endwhile;
                            else: ?>
                                <div class="post">
                                    <p>
                                        <?php _e('Sorry, no posts matched your criteria.', 'bizway'); ?>
                                    </p>
                                </div>
                            <?php endif; ?>
                            <!--End Loop-->
                            <nav id="nav-single"> <span class="nav-previous">
                                    <?php next_posts_link(__('&larr; Older posts', 'bizway')); ?>
                                </span> <span class="nav-next">
                                    <?php previous_posts_link(__('Newer posts &rarr;', 'bizway')); ?>
                                </span> </nav>
                            <div class="clear"></div>
                        </div>
                    </div>
                    <div class="grid_sub_8 sub_omega">
                        <!--Start Sidebar-->
                        <?php get_sidebar(); ?>
                        <!--End Sidebar-->
                    </div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
    </div>
    <?php get_footer(); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘nao consigo mudar de pagina’ is closed to new replies.