[Gelöst] Custom archive not linked to custom post in Toolset dashboard
This support ticket is created vor 6 Jahre, 11 Monate. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I'v created a custom archive for this page and assigned it to the trainings custom post type but in the Toolset dashboard this custom post type is showing up as not having an archive page.
See my screengrabs.
How can I get Toolset to recognise my custom archive for the trainings custom post type?
Hi, have you created a Layout for your custom post type archives? Once you create a Layout, add an archive cell for your CPT. Then you should see this information updated on the Toolset Dashboard. Let me know how it goes.
I've got this working. But have another quick query...
I'd like to display the archive title at the top of the page (above the loop items) and I'm using the [wpv-archive-title] shortcode but it's just displaying the word Archives.
How do I get it to display the actual title of this section which is Training.
See my attached screengrab.
Thanks for your help so far.
Hi, where are you placing the [wpv-archive-title] shortcode? If you place the shortcode in a Visual Editor cell in your Archive Layout, you should see "Archive: Training". Please see the attached screenshot for an example. I'm using the CPT "Projects" but it's the same general idea.
Sorry for the delay... I've been busy on a few other projects and just getting back to this now.
For some reason this is still not working. See my attached screengrab showing the title ARCHIVES appearing top left (underneath the semi-transparent header.
My second screengrab shows the layout for this page with <h1>[wpv-archive-title]</h1> in it's own row.
What I'm trying to do is get the h1 on individual course pages to be the title of our custom post type: Training (singular).
From what I see the layout that you are using this [wpv-archive-title] shortcode won't on a regular page Layout. This shortcode would need to be placed on an archive layout for it to work.
I'm using [wpv-archive-title] on the archive layout (see my attached screengrab).
I've now tried using: [wpv-post-title id="$parent"] but it just shows the title of the current page.
Is it not possible to display the title of the parent page dynamically then?
I'd like to achieve 2 things here:
1. On the archive layout I'd like to display an h1 with the archive title so in this case it's <h1>Training</h1> but because we're also using this layout for blog, archive and search results we need the h1 to be dynamic based on the archive title.
2. On a single page layout I'd like to display the parent of the single page in an h1 so: <h1>Training</h1>. Again we want this to be dynamic because we don't want to have to hard code the titles and create different layouts for each of these single pages.
Does this make sense? And more importantly is it possible? It feels like it should be but perhaps I'm missing something here.
Since you are working with Archives, the archives themselves wouldn't have a parent since the relationship is not between the Archives it is between the post themselves.
So if you want to display the Title of the parent post then the [wpv-post-title id='$parent'] must be within the loop that is displaying the posts. Also $parent must be the slug of the parent CPT, so if you have a parent CPT whose slug is Teachers then the correct way to get the parent title of each individual posts is by doing this [wpv-post-title id='$teachers']
Please let me know if this clarifies things a bit more for you.