As I am not able to create a new support ticket I will put the queries here (before I forget) and you can please split this thread to a new ticket.
QUESTION 1
I have a post (Eyewear Collection) which has a parent (Brand) and Brand has a parent (Brand Owner).. When I am on the Eyewear Collection Profile Template (Single Page).. I need to get the Brand Owner's ID, Name, Email and Mobile [types field="wpcf-organisation-email' output ='raw'] and [wpv-post-title].. if I had to get it for the Brand, I would have done this..
[types field="wpcf-organisation-email' @item='eyewear-brand-eyewear-collection.parent' output ='raw']
and
[wpv-post-title @item='eyewear-brand-eyewear-collection.parent' ] (would this be right? for wpv-post-title?)
But I don't know how to get it for the Brand Owner (who is the grand parent of eyewear collection).. please advise.
Also I would need to run the condition you helped me with above (function func_check_user_store_value()) to check if the user-store is equal to the brand owner's eyewear-store.. so please advise how I can do this..
So, considering the following relationship:
- State (grand-parent)
-- City (parent)
--- Employee (child)
Create new content template "Content Template for grand parent" that will hold fields that you want to display for the grand-parent with item attribute (state-city relationship slug):
[wpv-post-link item="@state-city.parent"]
Where:
- please replace the correct relationship slug.
Then when you add content template - add the item attribute to content template using the (city-employee relationship slug):
I created this content template.. first I created in block-editor and it was like this as I thought I would get all that I needed in one content template
but I realised that If I placed the above line just like that in the Eyewear Collection Template the name of the name of the distributor shows.. so I don't know if I should use it as a view or as a shortcode.. please do advise..
And finally I need to apply the function you created to check if user-store = eyewear-store .. so where do I apply this function?
Also when I create a content template should I use block editor? It seems to be the only option for me.. but I don't want the variables displayed as blocks but as raw output as they are going to be variables in an URL.. so please do guide me on how to create a content template without using block editor..
Can you please share problem URL and access details and tell me what field you want to display that belongs to grand-parent post type. Also, please clarify your grand parent post type hierarchy.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
you are working on the main site.. you need to be in the subsite
Anyways here's the link to the VIEW which has the TEMPLATE..
First I had created a template using block editor but after adding to the view as I had to remove the <p> tags etc, I changed it to a NON BLOCK EDITOR template from within the view (that's what I actually wanted to know too.. can I create a content template directly as a NON BLOCK EDITOR without going inside a VIEW.. please advise)
I am really confused by what you are trying to say
This link lien caché
will definitely redirect to this
lien caché
as that's how subsites and domain mapping works.. My site is a multisite installation with fourplusmedia.com as the main site and there are 2 ways to access it.. as a subdirectory (lien caché) or as the mapped domain (lien caché)
so what you are experiencing above is perfectly in place.. no?