5 replies
  • WEB DESIGN
  • |
I want to add static content to the hompage but only at the top of the page and then have the most recent posts under. Is there a plugin for this or do I need to find a template that does this?
#issue #wordpress
  • Profile picture of the author Sean3000
    First, are you comfortable with HTML and PHP? If yes, then you can edit your header.php file to add the static content. Some themes (like Elegant themes) also offer a way to specify a header image from the WP dashboard.

    For the recent posts, you can insert the "get recent posts" function, which is discussed here: Function Reference/wp get recent posts « WordPress Codex. You'll need to do some tweaking to make it look the way you want. Also, some themes have a "widgeted" header area, which means you can use the standard "recent posts" widget in your header.

    If all of this is beyond your skill level, then check out Fiverr or oDesk and hire a contractor to do it.
    {{ DiscussionBoard.errors[4979749].message }}
    • Profile picture of the author webmasteruk
      First bit of advice would be to set up a test blog on a subdomain on your server then you will not mess up your main blog.

      The next thing you could do is to use php include command see link bellow:-
      PHP Tutorial - Include File

      For this to work with wordpress you will need to install the exec-php plugin on your test blog.

      Hope that helps.
      {{ DiscussionBoard.errors[4980714].message }}
  • Profile picture of the author NetMan
    Originally Posted by blitz20 View Post

    I want to add static content to the hompage but only at the top of the page and then have the most recent posts under. Is there a plugin for this or do I need to find a template that does this?
    I would assume you have a "home page" template within the theme you're using. YOU would need to add your static content to that file to appear at the top of the page. Of course you should know about HTML and PHP.

    Regards,

    Andre
    {{ DiscussionBoard.errors[4981511].message }}
  • Profile picture of the author blitz20
    yeah i created a home page and cn add static content now the issue is what code do I insert to have the recent posts displayed below the content.
    {{ DiscussionBoard.errors[4982142].message }}
  • Profile picture of the author xtrapunch
    Easy solution: Create a post with desired content and make it sticky. No coding, no plugin required. This feature is available in WP. You can find the option to make a post stick while creating or editing posts.

    Plz don't use a static home page when using this option.
    Signature
    >> Web Design, Wordpress & SEO - XtraPunch.com <<
    Web Design & SEO Agency | Serving World Wide from New Delhi, India

    {{ DiscussionBoard.errors[4982357].message }}

Trending Topics