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?
- How To Find Out WordPress Category Table in MYSQL?
- Does the ‘cat’ argument in query_posts fetch posts from subcategories as well as the given ID?
- How to get this only in small letters (lowercase)? [closed]
- How to totally get rid of Category in my blog?
- Is there a function to cause empty categories not to show in menus?
- Category Specific Archive
- How to get the number of child categories a specific parent category has?
- Removing category base form links messes up the parent-child behavior
- How to list only child categories?
- Cannot add / edit categories to a post anymore
- List archived posts by subcategory
- Displaying multiple loops based off of category
- Display Categories, Sub-categories, and Sub-sub-categories on separate pages
- WooCommerce IF statements not working
- Category pie diagram meta box in post editing page
- There any way to get de percentage of number of post by user and category?
- How to display categories which contains particular tag?
- Exclude current post from loop
- Removing Uncategorized on post save if other category present?
- Not showing list if there aren’t any categories to display
- How to list all categories and their IDs using SQL query?
- How to order get_categories() in the same order as the menu?
- How to let the user create a selection of categories via the backend
- Display subcategories selectbox on each category page
- How can I only display links from a child category
- Category Template – Show Last Entry as Featured
- can I ‘combine’ categories as a menu item?
- List taxonomy terms assigned to a post in hierarchical view
- Count how many posts have a specified tag AND category
- Show the parent taxonomy by creating shortcode in woocommerce?
- Categories and Tags Conflict after Woocommerce Installation
- the_content() not showing full posts in category template
- Show parent category if there is no subcategory
- Add category links?
- Add html word before category
- Problem importing categories and sub-categories
- how to ask if in two categorys inside if
- Print child category slug nicename
- Remove “?category=” in the URL wordpress ajax filter work for category
- Categories are not showing up according to the hierarchy
- Remove “All categories” from searchbar dropdown
- Get categories by title descendant
- Hide categories from authors
- Update/change category of a post when it’s been inactive for a certain number of days
- category_count gives wrong number of posts in category
- Sort Category Archive pages and place sticky posts first
- Add custom fields to Woocommerce Category Page
- wordpress category rewrite rule with pagination
- Can’t create tags or categories