I created a business directory that displays local business, Each business can login and manage their listing. This is working fine.
Additionally, a business can also enter in one or more "current deals" . This is working fine.
I would like to add to my view for the business listing a way to loop around all the current deal the user entered in and display them. How can I go about connecting this current deal to a parent business listing already in the system?
As I have the site access I checked that you already configured Current Deals as childreen of Business Listing, that is good. You just forgot to add the filter in the "Current Deals Shortcode" which is " Post type Current Deal is a child of Business Directory post type" (As you are using a Content Template, you need to use the second option called "Post set by parent View").
I just placed the shortcode below in the top of the Content Template, feel free to move it to where you want:
[wpv-view name="Current Deals Shortcode"]
Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have..
When the user adds a current deal deal i want it to attached to their business directory listing such that when the business listing is viewed I can display the current deals.
Most users will only have one listing, however some users may have two listings. So is there anyway to have a checkbox that appears with the current deal that allows the users t o select the business listing they want this attached to?
In it's ideal, when viewing the business listing (parent) I would like to be able to display any deal entered in for this post. So basically the user can update the parent post (business listing) and also add deals.
Now you can see the Current Deals of the current Business and can add a new Current Deal. Is it what you want?
Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.
Thank you. I looked it over. I can see the one current deal listed, however, this listing has sever deals associated with it but i can only see one. When you look at the My Account page you can se the following deals that should also show. Also the "Current Test" deal you placed in does not show in the list of current deals that should show. sorry I am just just confused on why I cannot get a consistent display of deals to show on the front end and also to edit for each user.
Edit Deal added from biz page
Edit Deal added from main page
Edit test deal
Edit This is another test deal
Edit biz dir test deal
I accessed the page of the TEST LISTING and I can see only one Deal there, the "Current Test" (take a look in the attached image). In this page you just will see Current Deals assigned to this business directory (TEST LISTING). Is it what you want to do? If not sorry for my missunderstanding.
Oh sorry, I mean on the user front end. So when you log in with the test account from the front end and you click on my account. you will see there is more than one deal that was entered via CRED form that is not displaying.