Skip to main content
added 57 characters in body
Source Link

But it looks bad my site

I would like to have a home page template: template-blog-full-width.php and the rest would be defined by the options.

I would like to have a home page template: template-blog-full-width.php and the rest would be defined by the options.

But it looks bad my site

I would like to have a home page template: template-blog-full-width.php and the rest would be defined by the options.

added 1343 characters in body
Source Link

I made front-page.php with the code from template-blog-full-width.php

<?php get_header(); ?>
<?php global $pinboard_page_template; ?>
<?php $pinboard_page_template = 'template-blog-full-width.php'; ?>
<?php if( pinboard_get_option( 'location' ) ) : ?>
    <?php pinboard_current_location(); ?>
<?php endif; ?>
<div id="container">
    <section id="content" class="column onecol">
        <?php $args = array( 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => max( 1, get_query_var( 'paged' ) ) ); ?>
        <?php if( pinboard_get_option( 'blog_exclude_portfolio' ) ) : ?>
            <?php $args['cat'] = '-' . pinboard_get_option( 'portfolio_cat' ); ?>
        <?php endif; ?>
        <?php global $wp_query, $wp_the_query; ?>
        <?php $wp_query = new WP_Query( $args ); ?>
        <?php if( $wp_query->have_posts() ) : ?>
            <div class="entries">
                <?php while( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
                    <?php get_template_part( 'content', get_post_format() ); ?>
                <?php endwhile; ?>
            </div><!-- .entries -->
            <?php pinboard_posts_nav(); ?>
        <?php else : ?>
            <?php pinboard_404(); ?>
        <?php endif; ?>
        <?php wp_reset_postdata(); ?>
        <?php $wp_query = $wp_the_query; ?>
    </section><!-- #content -->
    <div class="clear"></div>
</div><!-- #container -->

I would like to have a home page template: template-blog-full-width.php and the rest would be defined by the options.

I would like to have a home page template: template-blog-full-width.php and the rest would be defined by the options.

I made front-page.php with the code from template-blog-full-width.php

<?php get_header(); ?>
<?php global $pinboard_page_template; ?>
<?php $pinboard_page_template = 'template-blog-full-width.php'; ?>
<?php if( pinboard_get_option( 'location' ) ) : ?>
    <?php pinboard_current_location(); ?>
<?php endif; ?>
<div id="container">
    <section id="content" class="column onecol">
        <?php $args = array( 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => max( 1, get_query_var( 'paged' ) ) ); ?>
        <?php if( pinboard_get_option( 'blog_exclude_portfolio' ) ) : ?>
            <?php $args['cat'] = '-' . pinboard_get_option( 'portfolio_cat' ); ?>
        <?php endif; ?>
        <?php global $wp_query, $wp_the_query; ?>
        <?php $wp_query = new WP_Query( $args ); ?>
        <?php if( $wp_query->have_posts() ) : ?>
            <div class="entries">
                <?php while( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
                    <?php get_template_part( 'content', get_post_format() ); ?>
                <?php endwhile; ?>
            </div><!-- .entries -->
            <?php pinboard_posts_nav(); ?>
        <?php else : ?>
            <?php pinboard_404(); ?>
        <?php endif; ?>
        <?php wp_reset_postdata(); ?>
        <?php $wp_query = $wp_the_query; ?>
    </section><!-- #content -->
    <div class="clear"></div>
</div><!-- #container -->

I would like to have a home page template: template-blog-full-width.php and the rest would be defined by the options.

Removed: Hello my friends from England. I am Polish but I will try to explain my problem as well.
Source Link
brasofilo
  • 22.1k
  • 8
  • 69
  • 264

Witajcie moi przyjaciele z anglii. Jestem polakiem ale postaram się wyjaśnić mój problem jak najlepiej.

I use Pinboard theme (it has a very complicated structure, but it is nice).

Witajcie moi przyjaciele z anglii. Jestem polakiem ale postaram się wyjaśnić mój problem jak najlepiej.

I use Pinboard theme (it has a very complicated structure, but it is nice).

I use Pinboard theme (it has a very complicated structure, but it is nice).

Source Link
Loading