• Hi, How do I create a page that lists all the categories from the blog on that page. Does anyone have a code or plugin for this? Please and Thank You.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Basically, you make a Page template and put a call to wp_list_categories() in it.

    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    Thread Starter Armin100

    (@armin100)

    I’ve tried to create my own page template for this but I received too many php errors. Please help.

    If you want to go an even easier route without making a page template, just install the Exec-PHP plugin:
    http://wordpress.org/extend/plugins/exec-php/

    and include <?php wp_list_categories() ?> in the page. All done!

    [signature moderated Please read the Forum Rules]

    Thread Starter Armin100

    (@armin100)

    Exec-php isn’t really safe. Last time I used it it rendered my php codes of the website. So im not really going back to that plugin.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Well, if you want to run PHP in a Page, then you don’t have a lot of options here. Either make a Page Template or use the ExecPHP plugin. Your call.

    Thread Starter Armin100

    (@armin100)

    I want to make a page template but everytime I do, I get php errors. I don’t know why.

    In which wordpress folder am I suppose to place the php file and what codes do I need to put for it to show the template. Every time I attempt this, it ends up with a strange php error.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    I want to make a page template but everytime I do, I get php errors. I don’t know why.

    Well, at a guess I’d say that the PHP code you make in your template has errors in it. But that’s just a guess. Without more specific details, nobody can answer your question.

    In which wordpress folder am I suppose to place the php file and what codes do I need to put for it to show the template. Every time I attempt this, it ends up with a strange php error.

    Page Templates go in your theme folder, and they only need that bit of header code with the Template Name parameter to show up as a template. The same code as you can find here: http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    Thread Starter Armin100

    (@armin100)

    i got it to work but i cant change the font size only for the categories list.

    <font size="10"><?php wp_list_categories() ?></font>

    By default the tag wp_list_categories() outputs the “Categories” heading followed by an unordered list of categories. You can change this behaviour by including a parameter “title_li=” to remove the heading and wrapping it with a <ul> or <ol> element and style it with a class.

    That way you can change the font or do any other styling.

    More info about this on this page:

    http://codex.wordpress.org/Template_Tags/wp_list_categories

    HTH

    S.K

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How do I create a categories page?’ is closed to new replies.