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

Popular Categories





how to link a custom page in WordPress!

+5 votes
74 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 183 views
+8 votes
2 answers 277 views
+4 votes
1 answer 615 views
+8 votes
3 answers 123 views
+4 votes
5 answers 718 views
+2 votes
1 answer 145 views
+5 votes
1 answer 1,169 views
+1 vote
2 answers 78 views
+1 vote
1 answer 740 views

Not a Member yet?

Ask to Folks Login

My Account
747 Folks are online
55 members and 692 guest online
Your feedback is highly appreciated