WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How i can create a welcome message area for my frontpage with backend control {admin panel}



share|improve this question
Are you able to modify your template files, or are you looking for a plug and play solution? – Pippin Jun 24 '12 at 14:36
Please improve your question: Where and how do want to add that content: editing the theme, installing a plugin? Show us your research efforts. – toscho Jun 24 '12 at 16:39
Dear Toscho i want to edit the theme not plugin , i do research !! . i need to make it option using theme option – Rasha Nour Eldin Jun 25 '12 at 9:16
dear pippin as i answered i need to edit the theme – Rasha Nour Eldin Jun 25 '12 at 9:16
up vote -1 down vote accepted

Create a page theme, then call it in index.php:

$recent = new WP_Query( 'page_id=**ID**' ); 
while ( $recent->have_posts() ) : $recent->the_post();
    ?><h3><?php the_title(); ?></h3><?php 
share|improve this answer
<?php $recent = new WP_Query("page_id=**ID**"); while($recent->have_posts()) : $recent->the_post();?> <h3><?php the_title(); ?></h3> <?php the_content(); ?> <?php endwhile; ?> – ahmedag Jun 24 '12 at 12:25
You can edit your own answer to make corrections and updates... Also, use the proper formatting for code. – brasofilo Jun 24 '12 at 14:10

Put a loop on the front page limited to posts with the tag "welcomeMessage". Then, on the back end write a post with that tag. Edit the post whenever you want to change the message.

share|improve this answer

If you are using a static frontpage, you can add the message to a custom field on the post editing screen and then put a shortcode in the page to display it, e.g. [welcome-message].

add_shortcode( 'welcome-message', 'echo_welcome_message' );
function echo_welcome_message() {
    global $post; 
    return get_post_meta( $post->ID, 'welcomemessage', true );

I don't see how this is really much different than just adding the welcome message to the top of the page content, but hope it helps.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.