Answer the question
In order to leave comments, you need to log in
How to make a template for a Wordpress page (custom)?
1) Make a template for the page (custom)
2) Display Header, Footer, Sidebar, page content
3) In the admin panel in WYSYWING, when editing the page, make
it possible to display all posts of the category with a shortcode, the shortcode should
look like [category = "category slug"]
The output of posts should look like this on the Front-end:
a) Post thumbnail (if any)
b) Brief description of the post
c) Date
d) Read more button
e) Optional Post Format
4) Optionally add pagination to posts (If more than 6 entries
Please at least a hint, because I have never made a WordPress template, but only worked with a ready-made template.Thanks
Answer the question
In order to leave comments, you need to log in
Out of habit, after reading the TK, I began to look for a price.
The template is made as a .php file inside it, first you put
it. This will be the name, after which it is available in the choice of templates for the page.
get_footer(); etc. to take the standard parts of the template; how to output individual files: <?php include('templatelanding-header.php'); ?>
post output, such a loop
<?php while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; // end of the loop. ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question