0
Welcome Guest! Login
0 items Join Now

Custom Post Archive page error

  • Custom Post Archive page error

    Posted 9 years 8 months ago
    • Anyone have any idea why this is happening... it's driving me mad!

      I've created a custom post type 'videos' using Toolsets 'Types' plugin, but when I go to display these posts on a Category Archive menu page in Gantry, I just get 'Sorry, but there aren't any posts matching your query.' The individual 'video' posts display OK and when I switch to the default 2015 template, the Category page displays fine, so I'm guessing something is missing in the Gantry template layouts for calling category custom posts?

      I also turned off all plugins to see if there was a conflict, but still the same outcome.

      Can't seem to find any solutions to this on the web, though I've come accross a couple of other posts with the same issue, but with no response.
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Custom Post Archive page error

    Posted 9 years 8 months ago
  • Re: Custom Post Archive page error

    Posted 9 years 8 months ago
    • I'm running the site on localhost at the moment. I will have to see if I can find time to upload a copy to my dev server.
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Custom Post Archive page error

    Posted 9 years 8 months ago
  • Re: Custom Post Archive page error

    Posted 9 years 8 months ago
    • This message contains only secure information that is visible to Damir, moderators and administrators
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Custom Post Archive page error

    Posted 9 years 7 months ago
  • Re: Custom Post Archive page error

    Posted 9 years 7 months ago
    • I'm not entirely sure what is being explained on the page link, in general I'm understanding that there is a hierachy of templates. But if I create a custom post type, and don't have an archive template for it, would it not just defer back to the default archive template that is in Gantry for all other post types? So if it's not 'archive-{post_type}.php' it uses just 'archive.php'

      Where am I meant to add the 'archive-{post_type}.php' that it states? Is this within the gantry 'html' folder, and can I just copy the archive.php file that is already there and just rename it to the custom post type name e.g archive-videos.php? How do I then assign this to my custom post type?

      Thanks.
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Custom Post Archive page error

    Posted 9 years 7 months ago
  • Re: Custom Post Archive page error

    Posted 9 years 7 months ago
    • This message contains only secure information that is visible to Damir, moderators and administrators
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: Custom Post Archive page error

    Posted 9 years 7 months ago

Time to create page: 0.070 seconds