I want on courses template single page, show other courses from the same teacher.
On teacher page i'm listing all courses related to that teacher. See picture below. hidden link
Than when click on some course i will display that course, display current teacher and display other courses from that teacher.
See picture below. hidden link
But i don't know how to do that. Can you please assist on that?
This should walk you through the steps as well as the query filters that are needed. Is there a particular section of the Tutorial that you are not clear on ?
If so you can let me know and I can provide further clarity for you.
Dear Shane,
i can't find where to place shortcode like in that tutorial you sent me.
This is step 2 and picture "Shortcode of Content Template that will display the parent page"
My editor is looking different and i don't know how to enable shortcode.
My code looks more like this if i change from Visual to Code editor:
Given that the blocks interface is being used to create the content template, the workaround to using the shortcode is to use the wordpress Classic block and then using the fields and views button on the classic editor block to add your view.
From there switch the classic editor block to HTML mode and you should be able to edit the shortcode to add the correct parameter that is required.
If you need my help on this, what you can do is to provide the admin credentials as well as a link to the page so that I can have a look.
Thank you for your patience, if you have a look at this view here you can see how i've set it up to display the brother pages. hidden link
I've added it to the courses template using the shortcode below.
<p>[wpv-view name="list-related-courses" wpvrelatedto="[wpv-post-id item='@ddu.child']"]</p>
Passing in the ID of the parent using [wpv-post-id item='@ddu.child']
You should be able to go in and style the view how you want it.
In part 2 all that is needed to display the parent information is to in your classic view for the courses just use this shortcode below to get the parent post title.
[wpv-post-title item='@ddu.child']