WordPress.org

Ready to get started?Download WordPress

Forums

Editing Post Bit (2 posts)

  1. codement
    Member
    Posted 5 years ago #

    Hi all,

    I do apologise as I'm new to WordPress and still finding my way around. I have searched the documents in regard to my problem to no avail unfortunately.

    I've created a theme from duplicating the default theme files and am having problems with two things.

    The first is posts (the actual article(s)). I've had a look in page.php, even removed all the content but I still can't edit or style it... If it's not page.php what file is it in?

    Second... I've created a block div for my links in the sidebar. I want to concatenate the link with the number of posts (i.e. Category (5)) and have searched through the functions but can't find anything related.

    Any help appreciated! Thanks

  2. jberghem
    Member
    Posted 5 years ago #

    The page.php is not used for posts but for Pages. Which PHP file is used for what in which situation is explained in this article in the DOCS section.

    If you have a widgetized sidebar, you can customize what the sidebar shows in the [Design] -> [Widget] part of the admin area of your WordPress both the category widget and the archive widget have the option "show post counts".

    If however you want to create a custom sidebar, use wp_list_categories('show_count=1');
    You can find more info about that here. You can find all the different template tags discribed in this article.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.