Skip Navigation

[Resolved] Related Area Page

This support ticket is created 3 years, 8 months ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 13 replies, has 2 voices.

Last updated by Pete 3 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#1990369
aa screen 2.png

Hi there,

We have custom post types (properties), these all assigned to an Area.

Is it possible to create a View, to use in Elementor where a related 'area page' shows at the bottom of each property?

In essence all the properties need a 'see more about the area' section at the bottom of each.

Also we need this to go to a specific page we create, not an archive page.

Worth an ask. Thank you.

#1991265

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,

Is it possible to create a View, to use in Elementor where a related 'area page' shows at the bottom of each property?

It is possible to create a view that shows the related area page, however what will that view display ? Will it display the properties that are related to the current one being viewed based on the Selected Taxonomy?

Please provide some clarity on this so that I can best advise.

Thanks,
Shane

#1991291
bio example.png

Hey Shane,

Hope you are well and keeping safe.

The individual 'area' pages, built using Gutenberg, and will have a Title, Excerpt and Featured Image...as well as a page of info.

Now we can direct a text link in Elementor using a dynamic tag, Post Terms and selecting area.
This text element pics up the area assigned to the listing and shows a very simple text link to the area archive page, this we have a 301 forward to the actual page we want.

We could create, using a view something like the bio attached, with a Title added.

Just can't work out how to set a query to do what we wish....looked and can't see how or if this is possible.

Thank you.

#1991377

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,

Thanks for the explanation, however your first screenshot shows Taxonomies, You can filter a view based on the Current Page taxonomy.

The important thing is what you want to display exactly which is what i'm not understanding.

For e.g you can use the taxonomy filter to allow the view to display similar items based on the selected taxonomy of the current page. Meaning if you have Post A, B and C but Post A and C are attached to Taxonomy A.

Viewing Post A will display Post C as a related item because Post C also has taxonomy A attached. Please let me know if this helps.
Thanks,
Shane

#1992485
plz see.jpg

Hi there,

Ok this will better illustrate what I would like, if possible?

Check out this test page: hidden link
Towards the bottom you'll see this (see pic)

----
Area: The South Coast
Discover more about The South Coast and surrounding area.
---

This link is really to the 'archive page' of South Coast. However we can set this to a 301 redirect to an actual page:

The thing is we need 'actual post pages' for this content, archive pages aren't great for SEO and this content will be important.
There will be 8 of these 'area' pages, they have a featured image and excerpt.

Is there a way of creating a view to display this info? The <b>title, feat image and excerpt of each area page</b>? These displayed on property listings dependent of their assigned area? In the case of the example...The South Coast.

Essentially, using WordPress, all I can do is add the text link you see in the pic, no image no excerpt.

If this isn't possible it's no big deal. 🙂

#1992495
plz see.jpg

Hi there,

Ok this will better illustrate what I would like, if possible?

Check out this test page: hidden link
Towards the bottom you'll see this (see pic)

----
Area: The South Coast
Discover more about The South Coast and surrounding area.
---

This link is really to the 'archive page' of South Coast. However we can set this to a 301 redirect to an actual page:

The thing is we need 'actual post pages' for this content, archive pages aren't great for SEO and this content will be important.
There will be 8 of these 'area' pages, they have a featured image and excerpt.

Is there a way of creating a view to display this info? The <b>title, feat image and excerpt of each area page</b>? These displayed on property listings dependent of their assigned area? In the case of the example...The South Coast.

Essentially, using WordPress, all I can do is add the text link you see in the pic, no image no excerpt.

If this isn't possible it's no big deal. 🙂

#1992581

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2021-03-18 at 1.23.18 PM.png

Hi Pete,

I understand what you mean now.

Yes it is possible to do it with a taxonomy view, that has a taxonomy term filter. See Screenshot

You can create an individual view for each page so each view will display only 1 specific Area, then you can just populate the view with the items you need to display.

Alternatively you can pass the term id into the URL and filter view through a URL parameter so you can only create one view.

Thanks,
Shane

#1992649
aa one.jpg

Hi there Shane,

Ok, great it can be done, now doing it.

I've created a view, and this as attached. Now these really should have info from a post like this:
hidden link
This has, for test, has no content but a Title, Excerpt and featured image.

It is showing date in the listing I sent earlier:
hidden link

This page will have a ton of area info and needed for SEO.

How do I get this View, to display and then link to this post, which is the South Coast taxonomy.

All our map and grid pages are run from one View and use URL parameters, we'd defiantly wish to do this again if we can work out how to use a shortcode to display this info.

Many thanks, Pete

#1992705

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,

I've seen from your screenshot that you have setup the view correctly. However taking a second thought about filtering by the URL parameter, it wouldn't work.

Reason being if a user clicks to the original archive they will get redirected to the static page but this page URL won't have the URL parameter to filter the view, hence it will display all the taxonomy terms not related to that taxonomy's page.

Did you add the view to this page already?
hidden link

As i'm seeing that it is currently blank with only the page title. If you need help with setting this up please provide admin access so that I can have a more detailed look for you.

Thanks,
Shane

#1992719

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,

Ok so I had a look and can verify that the correct information is being displayed. Unfortunately you will need 13 views since i'm assuming that the view on this page below wont be displaying all the details of the south cost but just a few items and then you can click for further details. In this case the view for this page below can be dynamic in that you can set the filter to "Set by the current post" and it will automatically detect the correct taxonomy to display.

hidden link

Then on the individual Area page you will need to add the views with the static filters for each respective Area.

Please let me know if this provides any additional clarifications for you as well as if there are any further questions please let me know.
Thanks,
Shane

#1992743
aa result.jpg

Hi Shane,

Ok set it to - "Set by the current post"

I don;t understand this:
Then on the individual Area page you will need to add the views with the static filters for each respective Area.

Also, the data being displayed is not going to be right.
We need this to have the page Title, Excerpt and feat image...and a link to the page....this URL is to the archive.
We are redirecting using 301 however the actual URL isn;t right.

I'm guessing the above isn;t going to be possible?

#1992753

Hi Shane,

Ok set it to - "Set by the current post"

I don;t understand this:
Then on the individual Area page you will need to add the views with the static filters for each respective Area.

Also, the data being displayed is not going to be right.
We need this to have the page Title, Excerpt and feat image...and a link to the page....this URL is to the archive.
We are redirecting using 301 however the actual URL isn;t right.

I'm guessing the above isn;t going to be possible?

#1993611

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Pete,


I don;t understand this:
Then on the individual Area page you will need to add the views with the static filters for each respective Area.

What I mean by this is that for each Area page that you will create, i'm assuming there will be 12 redirects from the taxonomy archives to the Created page that contains one of the 12 views. In the case of the views on the individual pages, you will need to set filter to the one in my screenshot here
https://toolset.com/forums/topic/related-area-page/#post-1992581

So that it will only display the information for the taxonomy that the page is built for.


Also, the data being displayed is not going to be right.
We need this to have the page Title, Excerpt and feat image...and a link to the page....this URL is to the archive.
We are redirecting using 301 however the actual URL isn;t right.

What is printed out is basic test information that can be changed, however you will always get the correct URL for the archive and this cannot be changed even though you are redirecting. The redirection doesn't change the stored link but it picks up when the page is being visited and points you to the redirected url.

Right now the shortcode being used to display the url is the [wpv-taxonomy-url] which will give you the actual url, however [wpv-taxonomy-link] will give you that same url in a link form but when clicked it will redirect you to the page that you've setup.

Please let me know if this provides some further clarification for you.

Thanks,
Shane

#1998653

My issue is resolved now. Thank you!