Category Page Extender Plugin

  • thymallus

    #3707

    Hi,

    i would like to use the category page plugin by pixline. http://categorypageextender.wordpress.com/

    I installed the plugin and customized it and then i copied the code to the page.php of the theme but i can’t see a result?

    <?php if( function_exists(page2cat_pages)){
    page2cat_pages(get_the_ID());
    } ?>

    Could you help me please.

    THX

    Prasanna SP

    #25626

    Please put your code between backticks. I’ve added them in your first post.

    Josh

    #25627

    You really shouldn’t edit core Graphene files. Instead, you can create a new page template and add it to your graphene directory. Then, in the page template, you can create a new div, and insert your code from above.

    I’m not sure where you inserted the code in page.php. But, it would have needed to be inserted in an area where it will be visible on the page.

    Try creating a new file (my_categories.php) in your graphene root directory. The file should look something like this:

    <?php
    /*
    Template Name: My Custom Categories
    */

    get_header();

    if( function_exists(page2cat_pages)){
    page2cat_pages(get_the_ID());
    }

    get_footer();
    ?>

    This is untested, but give it a try.

    Josh

    #25628

    Oh, once you created your custom page template. When you go to your editor to create a new page.. look over on the right for templates. In the dropdown, choose “My Custom Categories” as your page template.

    thymallus

    #25629

    @prasanna: understand – next time.

    @Josh: thx – i tried it but doesn’t work, but i think there is perhaps on other place a mistake

    I will try again

    thymallus

    #25630

    Hi Josh,

    i tried like you explained it but nothing happens? The site is http://www.predatorhunters.at/ and a tried it with a test page under guiding.

    Do you have any idea what is running wrong?

    Please help me.

    THX

    Mod

    Kenneth John Odle

    #25631

    Any plugin that requires you to modify theme core files or WP core files is not worth the trouble most of the time.

    Use Kalin’s Post List Plugin, which will do exactly what you want with much less effort. Here is a tutorial:

    http://blog.kjodle.net/2011/10/30/kalins-post-list-a-brief-tutorial/

    thymallus

    #25632

    thx – i found a solution

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!