• How i can add my page title and page content before my posts ?
    Here is my index.php code

    <?php global $pc_theme_object; /* Reference theme framework class */ ?>
    <?php get_header(); ?>
    
    <?php PC_Hooks::pc_after_get_header(); /* Framework hook wrapper */ ?>
    
    	<div id="container">
    
    		<?php PC_Hooks::pc_after_container(); /* Framework hook wrapper */ ?>
    
    		<div id="contentwrap" <?php echo PC_Utility::contentwrap_layout_classes(); ?>>
    
    			<?php PC_Hooks::pc_before_content(); /* Framework hook wrapper */ ?>
    
    			<div class="<?php echo PC_Utility::content_layout_classes_primary(); ?>">
    
    				<?php PC_Hooks::pc_after_content_open(); /* Framework hook wrapper */ ?>
    
    				<?php get_template_part( 'loop', 'blog-page' ); /* Framework standard loop. */ ?>
    
    			</div><!-- .content -->
    
      	  		<?php PC_Hooks::pc_after_content(); /* Framework hook wrapper */ ?>
    
    		</div><!-- #contentwrap -->
    
    	</div><!-- #container -->
    
    <?php get_footer(); ?>

    Can someone tell what i have to add in this code or how to change the code to have new template

Viewing 9 replies - 1 through 9 (of 9 total)
  • What theme/framework are you using? Where did you download it from?

    Thread Starter AntonioFajdiga

    (@antoniofajdiga)

    i am using design folio,and i know that WP didn’t make this theme, but i cannot solve this problem. if you know the answer please help me.

    Where did you download it from?

    Thread Starter AntonioFajdiga

    (@antoniofajdiga)

    i have also this piece of code and it works fine, just i cannot see the content of the page, i see only the title and posts

    <?php
    /*
    Template Name: Blog Template
    */
    ?>
    <?php global $pc_theme_object; /* Reference theme framework class */ ?>
    <?php get_header(); ?>
    
    <?php PC_Hooks::pc_after_get_header(); /* Framework hook wrapper */ ?>
    
    	<div id="container">
    
    		<?php PC_Hooks::pc_after_container(); /* Framework hook wrapper */ ?>
    
    		<div id="contentwrap" <?php echo PC_Utility::contentwrap_layout_classes(); ?>>
    
    			<?php PC_Hooks::pc_before_content(); /* Framework hook wrapper */ ?>
    
    			<div class="<?php echo PC_Utility::content_layout_classes_primary(); ?> blog">
    
    				<?php PC_Hooks::pc_after_content_open(); /* Framework hook wrapper */ ?>
    
    				<?php
    					/* Store the page query and show the blog post loop instead. */
    					$temp = $wp_query;
    					$wp_query = null;
    					$wp_query = new WP_Query();
    					$query_args = array(
    						'post_type' => 'post',
    						'paged' => $paged
    					);
    					$wp_query->query( $query_args ); 
    
    				?>
    
    				<?php $naslov=get_the_title();
    				echo the_content();
    				echo "<font size=22>$naslov</font>" ; 
    
    				?> 
    
    				<?php 
    
    				get_template_part( 'loop', 'blog-page' ); /* Framework blog page posts loop. */ ?>
    
    				<?php
    				/* Reset the page query. */
    
    				$wp_query = null;
    				$wp_query = $temp;
    				wp_reset_query();
    
    				?>
    
    			</div><!-- .content -->
    
    	  		<?php PC_Hooks::pc_after_content(); /* Framework hook wrapper */ ?>
    
    		</div><!-- #contentwrap -->
    
    	</div><!-- #container -->
    
    <?php get_footer(); ?>

    Where did you download it from?

    Thread Starter AntonioFajdiga

    (@antoniofajdiga)

    i cannot remember where i downloaded this theme. it was before 3 months

    Site url?

    Thread Starter AntonioFajdiga

    (@antoniofajdiga)

    i already figure out. thanks for your time

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I don’t know if you’re using the same version but it’s almost certainly this theme.

    http://wordpress.org/themes/designfolio

    Which doesn’t matter as you’ve solved it already…

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Add page title and page content’ is closed to new replies.