• Resolved arjanoskam

    (@arjanoskam)


    Hello,

    I am looking for something, maybe I am blind or stupid, but I can not find the functionality nor anyone discussing it.

    With WordPress standard posts you have category URLs and an overview page.

    I’ve created 2 custom posttypes:
    – Vacancies (slug: vacactures)
    – Projects (slug: projecten)

    And all that I want is an overview page like the standard news page or more customised so that I can list a custom posttype or multiple.

    Please tell me how, because I can’t find a single way.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    By “overview page”, do you mean the “posts page” which is your primary domain url out of box, or a specific page saved in Settings > Reading where you can choose a specific page to display the blog posts? Typically in chronological order newest to oldest?

    If yes, then that’s better worded/named as the archive url for the post type, so as long as both have “has archive” set to true, they’d be at say the following two URLs:

    https://www.frimex.tk/vacactures/
    https://www.frimex.tk/projecten/

    Those URLs would show the respective post type posts, newest to oldest.

    Thread Starter arjanoskam

    (@arjanoskam)

    @tw2113 I have just turned “Has Archive” to true, but still I get a 404. Am I doing something wrong?

    Also, I want to add text to the archive on top and change the name to “Vacancies”

    And add this text:

    Waarom Frimex?
    Naast een inspirerende werksfeer in een groeiend en innovatief bedrijf biedt Frimex een aantrekkelijk salaris en een passend pakket arbeidsvoorwaarden. Hierbij horen 26 vakantiedagen en 13 ADV-dagen.
    
    Frimex biedt ruimte om opleidingen en seminars te volgen, zodat je op de hoogte blijft van nieuwe ontwikkelingen. Medewerkers ervaren de bedrijfscultuur als betrokken en plezierig met een open communicatie en korte lijnen tussen management en medewerkers. Doorgroeimogelijkheden zijn er volop bij Frimex, afhankelijk van jouw ambitie en inzet.

    But I also can’t find a way to do that somehow

    • This reply was modified 3 years, 5 months ago by arjanoskam.
    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Just in case it helps, go and visit the permalinks settings page to flush the permalink rules.

    You’ll need to edit the archive template files to get that output, either by hardcoding it, or perhaps making use of the post type description fields. Though the output of that isn’t guaranteed either, so you may still need to make use of template editing for that. Making use of https://developer.www.ads-software.com/reference/functions/get_the_post_type_description/ should do the trick.

    Thread Starter arjanoskam

    (@arjanoskam)

    @tw2113 Thanks, that’s solved.

    I still have another issue.

    https://www.frimex.tk/vacatures

    There you can find a listing of the vacancies. But I also want to make a page : https://frimex.tk/vacatures/werken-en-leren-bij-frimex is it possible to do this? Because that page should not be a vacancie

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not really that I’m aware of because you’re always going to be fighting /vacatures/werken-en-leren-bij-frimex/ being queried as a page correctly, or as a post in the post type, incorrectly. I suspect it’d be more on the latter, which isn’t desired.

    It would work if it could be singular /vacature/werken-en-leren-bij-frimex as the slugs “collision” would be removed

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Overview page’ is closed to new replies.