Need help? Check out our Support site, then


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

  1. 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<br /> /*<br /> Template Name: Blog Page<br /> */<br /> ?><br /> <?php<br /> $et_ptemplate_settings = array();<br /> $et_ptemplate_settings = maybe_unserialize( get_post_meta($post->ID,'et_ptemplate_settings',true) );</p> <p>$fullwidth = isset( $et_ptemplate_settings['et_fullwidthpage'] ) ? (bool) $et_ptemplate_settings['et_fullwidthpage'] : false;</p> <p>$et_ptemplate_blogstyle = isset( $et_ptemplate_settings['et_ptemplate_blogstyle'] ) ? (bool) $et_ptemplate_settings['et_ptemplate_blogstyle'] : false;</p> <p>$et_ptemplate_showthumb = isset( $et_ptemplate_settings['et_ptemplate_showthumb'] ) ? (bool) $et_ptemplate_settings['et_ptemplate_showthumb'] : false;</p> <p>$blog_cats = isset( $et_ptemplate_settings['et_ptemplate_blogcats'] ) ? (array) $et_ptemplate_settings['et_ptemplate_blogcats'] : array();<br /> $et_ptemplate_blog_perpage = isset( $et_ptemplate_settings['et_ptemplate_blog_perpage'] ) ? (int) $et_ptemplate_settings['et_ptemplate_blog_perpage'] : 10;<br /> ?></p> <p><?php get_header(); ?></p> <p><?php get_template_part('includes/breadcrumbs', 'page'); ?></p> <p><div id="content-area" class="clearfix<?php if ( $fullwidth ) echo ' fullwidth'; ?>"><br /> <div id="left-area"><br /> <article id="post-<?php the_ID(); ?>" <?php post_class('entry clearfix'); ?>><br /> <h1 class="page_title"><?php the_title(); ?></h1></p> <p> <?php<br /> $thumb = '';<br /> $width = apply_filters('et_blog_image_width',640);<br /> $height = apply_filters('et_blog_image_height',320);<br /> $classtext = '';<br /> $titletext = get_the_title();<br /> $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext,false,'Blogimage');<br /> $thumb = $thumbnail["thumb"];<br /> ?><br /> <?php if ( '' != $thumb && 'on' == et_get_option('flexible_page_thumbnails') ) { ?><br /> <div class="post-thumbnail"><br /> <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?><br /> </div> <!-- end .post-thumbnail --><br /> <?php } ?></p> <p> <div class="post-content"><br /> <?php the_content(); ?></p> <p> <div id="et_pt_blog" class="responsive"><br /> <?php $cat_query = '';<br /> if ( !empty($blog_cats) ) $cat_query = '&cat=' . implode(",", $blog_cats);<br /> else echo '<!-- blog category is not selected -->'; ?><br /> <?php<br /> $et_paged = is_front_page() ? get_query_var( 'page' ) : get_query_var( 'paged' );<br /> ?><br /> <?php query_posts("showposts=$et_ptemplate_blog_perpage&paged=" . $et_paged . $cat_query); ?><br /> <?php if (have_posts()) : while (have_posts()) : the_post(); ?></p> <p> <div class="et_pt_blogentry clearfix"><br /> <h2 class="et_pt_title"><a>"><?php the_title(); ?></a></h2></p> <p> <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></p> <p> <?php $thumb = '';<br /> $width = 184;<br /> $height = 184;<br /> $classtext = '';<br /> $titletext = get_the_title();</p> <p> $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);<br /> $thumb = $thumbnail["thumb"]; ?></p> <p> <?php if ( $thumb <> '' && !$et_ptemplate_showthumb ) { ?><br /> <div class="et_pt_thumb alignleft"><br /> <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext); ?><br /> <a>"><span class="overlay"></span></a><br /> </div> <!-- end .thumb --><br /> <?php }; ?></p> <p> <?php if (!$et_ptemplate_blogstyle) { ?><br /> <p><?php truncate_post(550);?></p><br /> <a>" class="readmore"><span><?php esc_html_e('read more','Flexible'); ?></span></a><br /> <?php } else { ?><br /> <?php<br /> global $more;<br /> $more = 0;<br /> ?><br /> <?php the_content(); ?><br /> <?php } ?><br /> </div> <!-- end .et_pt_blogentry --></p> <p> <?php endwhile; ?><br /> <div class="page-nav clearfix"><br /> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }<br /> else { ?><br /> <?php get_template_part('includes/navigation'); ?><br /> <?php } ?><br /> </div> <!-- end .entry --><br /> <?php else : ?><br /> <?php get_template_part('includes/no-results'); ?><br /> <?php endif; wp_reset_query(); ?><br /> </div> <!-- end #et_pt_blog --></p> <p> <?php wp_link_pages(array('before' => '<p><strong>'.esc_attr__('Pages','Flexible').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?><br /> <?php edit_post_link(esc_attr__('Edit this page','Flexible')); ?><br /> </div> <!-- end .post-content --><br /> </article> <!-- end .entry --><br /> </div> <!-- end #left_area --></p> <p> <?php if ( ! $fullwidth ) get_sidebar(); ?><br /> </div> <!-- end #content-area --></p> <p><?php get_footer(); ?>

  2. 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.

  3. 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.

  4. 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><strong>'.esc_attr__('Pages','Flexible'.)':</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?><br />

  5. You're in the wrong forum.

  6. 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.

  7. 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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags