Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6121297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:46:05+00:00 2026-05-23T15:46:05+00:00

I just created a BLOG Script. I’m using foreach to loop and display the

  • 0

I just created a BLOG Script. I’m using foreach to loop and display the posts. But now I want to create a template engine like WordPress. How can I do that? I’m new to PHP. I don’t have any idea to do this.

I tried using file_get_content. For example:

file_get_contents("template_dir/template_name/index.php");

But there is a problem with CSS and images. That’s my first problem. Anyone please help me to create this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:46:05+00:00Added an answer on May 23, 2026 at 3:46 pm

    To bring in files you use include() or require()

    However, I don’t see why so many people insist on trying to reinvent the wheel. If you are building a blog install WordPress and code your own WordPress theme. WordPress has been in development for years and is now not only one of the best blogging engines, but a very powerful cms capable of powering any type of site.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just created a new rails application using command: rails blog Now I'm following
Not a question but i dont have a blog and i have just created
Using Ruby on Rails, I have created a blog. The blog has posts, and
Just created a WSS site with a some custom web-parts. But I get an
I just created an iPhone app and am having friends try it out, but
I have an Umbraco based blog and I want to display the top 10
So I just created a new project and app for the blog. When I
I have an ASP.NET MVC 3 project that I just created using the project
I've just added this snippet to my wordpress blog... <script>(function(d, s, id) { var
Just created an acc on SO to ask this :) Assuming this simplified example:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.