Jump to content

Recommended Posts

I'm making a wordpress theme from scratch, and I can't for the life of me figure out how to set up the files (yes, I did read the documentation). What I want is, a unique front page, a separate page for posts, and the same page template for all the remaining pages.

 

The files I have so far are, front-page.php, and index.php and they contain the code (respectively): 

<?php get_header(); ?>

front-page.php

<?php get_footer(); ?>
<?php get_header(); ?>

index.php

<?php get_footer(); ?>

Now, what I'm missing is a page to display the posts. How would I go about that?

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/283006-wordpress-help/
Share on other sites

This should get you in the right direction.

http://www.siteground.com/tutorials/wordpress/wordpress_create_theme.htm

 

The above theme is the basics, you should look at the anatomy of a wordpress theme from the wordpress codex.

http://codex.wordpress.org/Theme_Development

 

If this is too much for you and want to make a faster theme, but a good headstart, consider using underscores.

https://github.com/automattic/_s

Link to comment
https://forums.phpfreaks.com/topic/283006-wordpress-help/#findComment-1454374
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.