Messed up page-blog.php local won't shows

  • Author
    Posts
  • #929216

    zadia91
    Member

    I’m trying to tweaking custom site right now, I have my old one online already so this one is save. I was almost half way done and at the point where I wanted to remove my “read more” button and function I screwed it up..

    I cut some part of code and update it just to see how it goes, page went blank, so I came back to the other window and paste the last code I cut it to the original place and update it went blank again. I don’t know what to do now and it’s frustrating since I put a lot of effort already ;__;

    I’m using Flexible template from elegantthemes.
    This is my first post here, I’m not sure if it’s this is work, bare with me ><
    Is there any problem in this php file?? I can’t go to other page cause all went blank so I still open my post-blog.php and preview ==;

    <?php
    /*
    Template Name: Blog Page
    */
    ?>
    <?php
    $et_ptemplate_settings = array();
    $et_ptemplate_settings = maybe_unserialize( get_post_meta($post->ID,'et_ptemplate_settings',true) );

    $fullwidth = isset( $et_ptemplate_settings['et_fullwidthpage'] ) ? (bool) $et_ptemplate_settings['et_fullwidthpage'] : false;

    $et_ptemplate_blogstyle = isset( $et_ptemplate_settings['et_ptemplate_blogstyle'] ) ? (bool) $et_ptemplate_settings['et_ptemplate_blogstyle'] : false;

    $et_ptemplate_showthumb = isset( $et_ptemplate_settings['et_ptemplate_showthumb'] ) ? (bool) $et_ptemplate_settings['et_ptemplate_showthumb'] : false;

    $blog_cats = isset( $et_ptemplate_settings['et_ptemplate_blogcats'] ) ? (array) $et_ptemplate_settings['et_ptemplate_blogcats'] : array();
    $et_ptemplate_blog_perpage = isset( $et_ptemplate_settings['et_ptemplate_blog_perpage'] ) ? (int) $et_ptemplate_settings['et_ptemplate_blog_perpage'] : 10;
    ?>

    <?php get_header(); ?>

    <?php get_template_part('includes/breadcrumbs', 'page'); ?>

    <div id="content-area" class="clearfix<?php if ( $fullwidth ) echo ' fullwidth'; ?>">
    <div id="left-area">
    <article id="post-<?php the_ID(); ?>" <?php post_class('entry clearfix'); ?>>
    <h1 class="page_title"><?php the_title(); ?></h1>

    <?php
    $thumb = '';
    $width = apply_filters('et_blog_image_width',640);
    $height = apply_filters('et_blog_image_height',320);
    $classtext = '';
    $titletext = get_the_title();
    $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Blogimage');
    $thumb = $thumbnail["thumb"];
    ?>
    <?php if ( '' != $thumb && 'on' == et_get_option('flexible_page_thumbnails') ) { ?>
    <div class="post-thumbnail">
    <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
    </div> <!-- end .post-thumbnail -->
    <?php } ?>

    <div class="post-content">
    <?php the_content(); ?>

    <div id="et_pt_blog" class="responsive">
    <?php $cat_query = '';
    if ( !empty($blog_cats) ) $cat_query = '&cat=' . implode(",", $blog_cats);
    else echo '<!-- blog category is not selected -->'; ?>
    <?php
    $et_paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' );
    ?>
    <?php query_posts("showposts=$et_ptemplate_blog_perpage&paged=" . $et_paged . $cat_query); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class="et_pt_blogentry clearfix">
    <h2 class="et_pt_title">"><?php the_title(); ?></h2>

    <p class="et_pt_blogmeta"><?php esc_html_e('Posted','Flexible'); ?> <?php esc_html_e('by','Flexible'); ?> <?php the_author_posts_link(); ?> <?php esc_html_e('on','Flexible'); ?> <?php the_time(et_get_option('flexible_date_format')) ?> <?php esc_html_e('in','Flexible'); ?> <?php the_category(', ') ?> | <?php comments_popup_link(esc_html__('0 comments','Flexible'), esc_html__('1 comment','Flexible'), '% '.esc_html__('comments','Flexible')); ?></p>

    <?php $thumb = '';
    $width = 184;
    $height = 184;
    $classtext = '';
    $titletext = get_the_title();

    $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
    $thumb = $thumbnail["thumb"]; ?>

    <?php if ( $thumb <> '' && !$et_ptemplate_showthumb ) { ?>
    <div class="et_pt_thumb alignleft">
    <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?>
    "><span class="overlay"></span>
    </div> <!-- end .thumb -->
    <?php }; ?>

    <?php if (!$et_ptemplate_blogstyle) { ?>
    <p><?php truncate_post(550);?></p>
    " class="readmore"><span><?php esc_html_e('read more','Flexible'); ?></span>
    <?php } else { ?>
    <?php
    global $more;
    $more = 0;
    ?>
    <?php the_content(); ?>
    <?php } ?>
    </div> <!-- end .et_pt_blogentry -->

    <?php endwhile; ?>
    <div class="page-nav clearfix">
    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    else { ?>
    <?php get_template_part('includes/navigation'); ?>
    <?php } ?>
    </div> <!-- end .entry -->
    <?php else : ?>
    <?php get_template_part('includes/no-results'); ?>
    <?php endif; wp_reset_query(); ?>
    </div> <!-- end #et_pt_blog -->

    <?php wp_link_pages(array('before' => '<p>'.esc_attr__('Pages','Flexible').': ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    <?php edit_post_link(esc_attr__('Edit this page','Flexible')); ?>
    </div> <!-- end .post-content -->
    </article> <!-- end .entry -->
    </div> <!-- end #left_area -->

    <?php if ( ! $fullwidth ) get_sidebar(); ?>
    </div> <!-- end #content-area -->

    <?php get_footer(); ?>

    #929379

    supportbot
    Member

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

    #929384

    zadia91
    Member

    I just searched more about it, white screen, caused by an error, or missing character. At least now I know the problem, but still, I don’t know that much about codes sadly.

    #929385

    zadia91
    Member

    Just opened the codes on Dreamweaver and it says there’s a mistake here, I don’t have any idea @_@

    <?php wp_link_pages(array('before' => '<p>'.esc_attr__('Pages','Flexible'.)': ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

    #929387

    justpi
    Member

    You’re in the wrong forum.

    #929389

    raincoaster
    Member

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    #929393

    auxclass
    Member

    And they just love someone carpet bombing a code listing over about 6 lines into the forum – hope they are better at researching Paste Bin than they are the correct forum

The topic ‘Messed up page-blog.php local won't shows’ is closed to new replies.