Hey there! any question in your mind? Ask It Now!.

Popular Categories





how to link a custom page in WordPress!

+5 votes
99 views
asked in Programming by user8080 (590 points)
edited by Bhartesh
I want to create my own page and . want to link it in WordPress

1 Answer

+1 vote
answered by amit_pammu Expert (5,030 points)
selected by user8080
 
Best answer

this is very simple!.. make your page..like :

page-contactus.php:

and in you can call your page..!;;

 

e:g;

 

<?php
    get_header();   
?>
        <?php if ( have_posts() ) : ?>
        <?php /* Start the Loop */ ?>
        <?php while ( have_posts() ) : the_post(); ?>
        
        <?php wv_the_title(' <h1>','</h1>');?>
        
        </div>
        <?php the_content();?>
 
        <?php endwhile; ?>
        <?php endif; // have post?>
  
<?php
    get_footer();
?>
hope you will find your answer!
commented by amit_pammu Expert (5,030 points)
any time bro :)
commented by amit_pammu Expert (5,030 points)
you can also do it through admin panel!..

Related Questions

+1 vote
1 answer 191 views
+8 votes
2 answers 285 views
+4 votes
1 answer 628 views
+8 votes
3 answers 129 views
+4 votes
5 answers 732 views
+2 votes
1 answer 153 views
+5 votes
1 answer 1,171 views
+1 vote
2 answers 89 views
+1 vote
1 answer 746 views

Not a Member yet?

Ask to Folks Login

My Account
679 Folks are online
0 members and 679 guest online
Your feedback is highly appreciated