I found Ian Stewart‘s Theme Development tutorial a wonderful one to start from the scratch with a very little knowledge on WordPress.
How To Create a WordPress Theme: The Ultimate WordPress Theme
Tutorial
Hope the explanation there could help you a lot to understand which code block’s for what. So you can modify yours as you want. 🙂
Related Posts:
- Check if current category has subcategories
- wp_nav_menu not appearing for a couple pages
- wp_update_nav_menu_item() to insert categories
- How to get the url to tag & category base set by the user?
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- is_archive() content being shown instead of is_category()
- Retrieve all posts within tag OR category?
- Edit the markup of categories list
- How to get data about category in category.php
- editing fonts of category links from the_category() funtion
- How to check category of of custom post type or not
- Set a them for all subset of category
- How to call custom category field data in theme?
- Different templates for different category tags
- Why category.php throw 404 in wordpress while calling paginate_links()?
- Woo Framework: woo_cat_featured not populating
- Inside a loop, how to change CSS class based on category name?
- Question on using custom structures for categories
- Getting the category title / description returns first matching post?
- Allow user to select categories that will display in post loop
- Insert HTML content in WP Query at specific point
- How do I retrieve the category ID (ugly permalinks) in my sub-navigation menu?
- Category page returns 404 error
- Show post categories
- Add description to categories menu in admin
- filter a loop base on specific category
- Problem with multiple loops in wordpress theme
- How to add icon over specific thumb
- How to differentiate the homepage structure from the category page structure in WordPress template?
- How to detect /category and /tag base pages?
- WooCommerce shared categories
- Show the number of the post
- Products category search not working
- In if…else condition, the else statement shows even if if statement is correct
- Can’t display posts by filtering categories using isotope.js
- Media Library Categories
- How can I add HTML classes for current taxonomy/term hierarchy into my pages to simplify styles?
- Change single.php template based on parent category
- Show posts from all categories
- If it is a top level category show children otherwise show sibling categories
- Lowest catagory link
- How to get multiple loop in category.php, my scripts becomes madness
- Category base 404 – fix
- altering theme – content generated by PAGES not PORTFOLIO
- Category Archives: Show posts categorized in parent category only
- WordPress 3.5 how to determine if user is on category listing or category edit screen?
- Display only one level subcategory in wordpress
- How can i hide the authors box from a specific set of categories and post types?
- Get all first images of posts in same category
- How to display the category featured images [closed]
- How to make /category/ URL load properly instead of 404 error?
- WP REST API: filter by category 1 AND category 2
- Remove / Rename Uncategorized Category In WordPress
- Fixing category count
- Can a Child Category Have More than One Parent?
- Rewrite URL with category and tag combined using WP_Rewrite
- How to get the category of the post and link it to the archive (of the category)
- How to display Last Updated date from the latest post for a category list
- Update term count using a callback function
- How to have a static category/author page?
- Can the_category display a post count?
- How can i call an article from each category and still paginate properly?
- programmatically adding categories to custom taxonomy
- How to Import Categories with Descriptions from a CSV File?
- Modification to wp_list_categories
- How to get child categories of a given Post
- Display “add to cart” button on every listing in product category page?
- Show archives by year from just one category
- Combining post categories and link categories?
- wordpress sub-category ( lowercase letters + non-latin characters ) = 404
- Customize WordPress widget – Product Category
- Display categories with child category separated by letter
- Refine/Filter the Search Results by Category
- Have multiple category queries from the URL been fixed yet?
- Why is it so hard to show the URL of the current category and how to do it?
- How to get Next/previous_post_link to go through articles in top parent category
- Conditional loop for category
- Thumbnail for categories / taxonomies plugin?
- Pagination for query_posts();
- echo get_post_meta of all post in a category to fill up a select field
- Notice: Undefined variable: category_id
- I need to exclude from a query a category and a few custom taxonomies
- wp_insert_link not working
- Showing different posts on category pages
- add current-cat class to single post page
- Problem with pagination block in Gutenberg
- How to redirect to category page if page does not exists?
- Sort categories by custom field in WordPress admin
- Related to genre and category
- Get permalink to latest post in category
- How to load terms of a custom taxonomy of a product in woocommerce cart page
- Category and tag urls return 404 error
- Removin /page/2 from pagination
- get parent_category class in loop
- Alphabetize all but one category
- Printing direct descendants of a category with WP_Query
- List all authors by matching custom meta data on a category page
- Page view: Sorted by categories
- Anyway to hide a Category in the Categories section when adding/editing a post in WP Admin?
- Images as Categories