WordPress.org

Ready to get started?Download WordPress

Forums

Display the posts of one category in a Page SOLVED !! (37 posts)

  1. vtxyzzy
    Member
    Posted 4 years ago #

    The easiest way I have found (no coding involved!) to do this is to use the Page Links To plugin as described in this thread.

  2. Mark / t31os
    Moderator
    Posted 4 years ago #

    From my understanding all you're doing then is redirecting the page somewhere else, which defeats the point of using the page does it not?..

    Isn't the point of using a page so you can have a particular URL for that content...

    So rather then having..

    yoursite.com/category/books

    You'd have..

    yoursite.com/books

    Books being the name of the page, which makes for a shorter (and maybe desired) URL.

    For page links that point offsite i can understand the use for that plugin, but for linking a page to a WordPress archive, it seems accessive, a hard-coded link could do exactly the same, without any overhead caused by loading an additional plugin..

    Am i missing something?

  3. vtxyzzy
    Member
    Posted 4 years ago #

    Many themes create their menu from Pages, so adding a category to the menu can be a problem. The plugin lets you use a Page, which goes into the menu, to redirect to a category archive, among other things.

    Where would you put a hard-coded link for this case?

  4. Mark / t31os
    Moderator
    Posted 4 years ago #

    Alongside the code handling the menu? in the template file...

    I honestly cannot figure out why you'd to install a plugin just for the sake of a single link (other then pure simplicity).. You could do the same with a htaccess rule for what it's worth to.. We are discussing a singular link here, not several, and imo it seems overkill for something that could be handled by one line of code, either via a htaccess rule or via a hard-coded link..

    It's un-necessary plugin additions like this that add to plugin overhead, which in turn leads to dreadfully slow sites... Where possible you should always hard-code, unless you have a particular need that warrants something more versatile(or easier).. like a plugin ...

    What's easy now, my not be the best decision for your site in the long run.. if you can hard-code, then do it, it'll be one less area of concern should you face any performance issues somewhere down the road, be it months, weeks or years later...

    Not saying it's a bad idea, just unwarranted for this use case.. imho..

  5. vtxyzzy
    Member
    Posted 4 years ago #

    IMHO, it is just a lot easier for a novice to put a link in a page than to potentially bomb their site trying to change code in a template. If you are an experienced (even slightly) programmer, go for it, otherwise take the safest approach.

  6. Mark / t31os
    Moderator
    Posted 4 years ago #

    Agreed, if it's for the sake of simplicity i see no problem, we can't all be coders/programmers .. :)

    You give alot of sound advice here mate, i'd not disagree with you just for the sake of disagreeing ... ;)

  7. Morgs
    Member
    Posted 4 years ago #

    All of these solutions are great for me thanks.

    Though I am running into one problem.

    I am setting up a page with a parent and applying the one category only template to that page. It all works great accept in my menu list .current_page_item is no longer being applied to that page.

    Any ideas?

    current_page_parent still gets applied to the parent item.

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic