Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Guy,
Is it possible to add a custom field with a unique value in the custom post "livres" to create a simpler condition and how?
Yes it is possible to add a custom field to mark the post and use a conditional to check that value and display it in the archive. So you will display the items where the field is selected.
Secondly was the login credentials changed for the website ? I'm unable to log in using the credentials that you've previously provided. Can you double check and let me know.
Thanks,
Shane
Hi Shane
here is the code to connect
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Guy,
Have a look now and let me know if this helps.
hidden link
Thanks,
Shane
Hello Shane and thank you
that's exactly what I wanted.
Now there is still the problem of the drop-down menu with the list of artists who have books.
I tried with a condition that says that if the custom field "wpcf-book-date-of-publication" is empty, then don't display artists who don't have a book in the list.
But that doesn't work.
hidden link
and then I can't manage to create the drop-down menu with bootstrap
en vous remerciant encore
guy
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Guy,
The problem here is that you seem to have copied and pasted this filter which wont work. Can you re-add the relationship filter by clicking on the "New Filter" button and select your relationship filter.
Once you've done this you should get the dropdown options on the frontend. Also please remember to add a submit button to the view if you are not using the AJAX search.
Thanks,
Shane
Hello Shane
Now I have the books in the drop-down menu that show me the artist's name below.
hidden link
hidden link
and what I want is the list of artists (with books(livres)) in a drop-down menu that takes me back to each artist's page.
And I'm lost with these relationships.
thank you for your patience
guy
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Guy,
You view is listing Artists, so the filter will list the books to filter the artists by. What is it that you want to filter by ? You want to filter the Books by the Artists in the dropdown ?
Please let me know.
Thanks,
Shane
Hi Shane
I just want the drop-down menu with the names of the artists who have books that directs us to each artist's page. Like
hidden link
Guy
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Guy,
So in the filter, you want to list your artists.
Then when you select their name you want to be taken to their page ? If that is what you want tot do then this won't be possible because the Filter is meant to filter a list of posts.
So if you have the list of Artists name in the dropdown, then you must be using it to filter their books, so the view will present a list of Books and then you can click a book based on the selected artist.
Or you can have a dropdown of the Books that will filter a list or artists when you select a Book. From the filtered list of Artists you can click on one to go to their profile.
These are the only 2 possibilities please let me know if this helps.
Thanks,
Shane
Shane
You mean that it is impossible to have a drop-down list of artists to get to their page.
like the link on this list on the screenshot.?even in another context ?
Guy
Excuse me Shane, but i need this list.
I have created a view that searches for artists
In this list, is it possible to have the direct links to the artist pages?
hidden link
this list displays all the artists.
How can we limit it to artists who have books?
with the custom field "book-publication-date" which always has a value.
or the artists who don't have any with the custom field "book-publication-date" which is always empty?
guy
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Guy,
Ok so I see what you did here, you've added a name custom field to the artist as well. This will definitely allow you to filter by the artists name and give you a single artist.
However my advise is that if possible is to add a marker on the artist as well such as a checkbox that we can set to say the artist has books. This way we can filter for the artists that has this checkbox filled.
Without this we won't be able to pick off the artists that only have books.
Thanks,
Shane
Hi Shane
I see the light
some artists only have books
others only works
and some have both.
Is this sufficient with two chekboxes or simpler with three
guy
Shane
always a little problem with theworks lists of the same artist
I made a copy of the template "book" for "work on paper".
hidden link
hidden link
hidden link
hidden link
I have checked everything but in the list of 'works on paper' of the same artist, this list shows all the works on paper and not in the model for the books.
Thanks
Guy
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Guy,
It should be working now. What was needed was to pass the parent ID into the view of this new post type so that it can filter correctly.
Thanks,
Shane