• Codd

    (@ranjangoyal)


    I am new to wordpress

    I created a theme and created new static page as home page

    Now wanted to add blog page and for this I created another page, named it as blog and then marked it as “posts page” in settings >> reading

    If I don’t do this then I can see header and footer of the page but if I do the above then it shows blank page without anything

    Why it shows completely blank page?
    How can I relate posts with it?
    On doing

    define(‘WP_DEBUG’, true);

    I get errors like below

    Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\project\wp-content\plugins\exec-php\exec-php.php on line 22

    And after removing these errors, still its blank page

    Should I use any other plugin?

    All website is complete just blog page needs to be created

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

    (@ranjangoyal)

    In my theme only following files are getting used rest are blank:

    1. header.php
    2. footer.php
    3. style.css
    4. page.php

    Following is the code for page.php

    <?php get_header();?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile; endif; ?>

    <?php
    $pagename = $post->post_name;

    $page_id = get_the_ID();

    if($page_id == 135){
    //get_sidebar();
    }
    ?>

    <?php get_footer();?>

    5. functions php

    functions.php just has following two lines

    remove_filter( ‘the_content’, ‘wpautop’ );
    remove_filter( ‘the_excerpt’, ‘wpautop’ );

    I have created various pages in wordpress admin and placed text in posts

    I have used exec-php

    All posts are fetched and displayed in pages

    On doing

    define(‘WP_DEBUG’, true);

    I get errors like below

    Deprecated: Assigning the return value of new by reference is deprecated in D:\wamp\www\project\wp-content\plugins\exec-php\exec-php.php on line 22

    And after removing these errors, still its blank page

    thanks

    Thread Starter Codd

    (@ranjangoyal)

    Is it possible that I create a separate theme for blog…. if I create that how it be used as only one theme can be used?

    please help

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress custom posts page coming blank’ is closed to new replies.