Jump to content

Wordpress Help


BorysSokolov

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.