[Resolved] Linking to a “author” page of advertiser
This thread is resolved. Here is a description of the problem and solution.
Problem:
Let me explain in bullet form what I'm trying to achieve.
1. A user visits a single ad for example see: http://inthebunch.co.za/classifieds123/listing/off-road-2010/
2. The user then wants to see all the ads by that specific advertiser.
3. The user clicks on a link that takes them to that specific advertisers' author/archive page
4. On that page there is grid display of the advertisers' ads
Solution:
1) The user clicks on a link that takes them to that specific advertisers' author/archive page
You can setup the link to post author archive page with Views shortcode: [wpv-post-author format="link"]
For example, edit the layout "Single - Ad", the visual editor cell "Advertiser", add a line:
[wpv-post-author format="link"]
More help: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-author
2) On that page there is grid display of the advertisers' ads
Createa Views wordpress archive for author archive page:
Nigel has been very helpful but I'm not entirely sure it's what I'm trying to do, please understand I'm not blaming him at all!
I'm essentially trying to link to the advertiser of an ad, the linked page should show a list of that advertisers' ad and other custom fields like their website, contact number etc (I know how to ad these fields)
I was hoping to schedule a video call so I can explain what I'm trying to do more visually, is this possible?
1. Can you please confirm that you have created two CPTs?
CPT advertiser as Parent
CPT Ad as child
2. Have you already build one to many relation between advertiser and Ad?
3. Now you want to display all child Ads on advertiser Parent page? Right?
4. Also please provide back-end screenshots of View or Page where you have tried to add the Advertisers.
If issues still exists, please provide temporary access WP-Admin Login and FTP login info to your site. Your next answer will be private which means only you and I have access to it.
=== Please backup your database and website ===
✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.
✙ Please add the Link to the CPTs and Pages involved in this case.
I checked it in your website, you have already setup the parent/child post type relationship between post type "shop" and "listing",
you can create a "shop" post, for example: hidden link
In section "Post Relationship", there is a button "Add New Listing", there you can add more child "Listing" posts.
Is there possibly a way to make this process easier and more automatic by maybe using a custom author archive page that lists the advertisers' adverts they placed?
Let me explain in bullet form what I'm trying to achieve.
1. A user visits a single ad for example see: hidden link;
2. The user then wants to see all the ads by that specific advertiser.
3. The user clicks on a link that takes them to that specific advertisers' author/archive page
4. On that page there is grid display of the advertisers' ads
I assume the "advertiser" is a wordpress user, who is the post author of single listing post,
If it is, you can try these: 1) The user clicks on a link that takes them to that specific advertisers' author/archive page
You can setup the link to post author archive page with Views shortcode: [wpv-post-author format="link"]
For example, edit the layout "Single - Ad", the visual editor cell "Advertiser", add a line:
[wpv-post-author format="link"] hidden link
More help: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-author
2) On that page there is grid display of the advertisers' ads
Createa Views wordpress archive for author archive page: hidden link
in section "Loops Selection", enable option "Author archives", and click "Edit" button, enable post type "Listings"
Then it will be able to display the listing posts of the specific author
More help: https://toolset.com/documentation/user-guides/normal-vs-archive-views/
Q1) Go to this ad: hidden link then click on the edditest123 link.
It is a new question, It depends on how do you setup the "edditest123 " link, if you are going to display a CRED form edit link, please follow our document to setup it:
Displaying CRED editing forms https://toolset.com/documentation/user-guides/displaying-cred-editing-forms/
If you still need assistance for it, please create new thread for the new question, that will help other users to find the answer
Q2) the second thing, how do I add content to the author page, do I edit the view or the content template?
You can edit the Views wordpress archive for author archive page: hidden link
And add your content to where you want, more help:
WordPress Archive – Customizing the Appearance of Archive Pages https://toolset.com/documentation/user-guides/normal-vs-archive-views/