Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Steve,
Why not separate the Agendas into different CPT. The way you have it now is that its in 1 CPT . Separating them into individual CPT and then using Layouts to setup how you want the items to be displayed.
Also I see that the Layout itself is holding the information, which is actually not recommend because the post that you created is empty.
You should add your data to the Post and then use the Layout to customize this.
Please let me know if this helps.
Thanks,
Shane
Ok - let's see what I come up with!
Thanks for your help - let's keep this thread open.
Would I need a one-to-one relationship between the 2 CPTs then - and / or could I merge these into a 2 column view?
Ideally, I want to display 2 columns of information - the Agenda and Minutes and control the # of rows.
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Steve,
Yes you can do this with a one to one relationship so that you can relate your Agenda to the Minutes.
This thread will remain open.
Shane,
I think I can make this work - by binding the 2 cpts in a 1:1 relationship and then bind each post.
The workflow for the user then becomes quite tedious.
They will need to -:
1) Create a new post for each CPT
2) For each CPT they will need to bind them to form a relationship.
So let me ask you this ...
The limit - as you say - works at the Post level. Is there any way, I can direct the query to look at each row level of Post Data?
That way, I can remain at one CPT - and there is only one action that is needed - that is adding a row of Post level data.
Appreciated,
Steve
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Steve,
I'm really not sure what you mean.
Could you perhaps provide a visual example so I know exactly what you are try to achieve?
Thanks,
Shane
Shane,
Consider this a low priority - as I am exploring options.
Current site -:
hidden link ( Dreamweaver ) - redesigning in w/press.
No issues creating this page - but ultimately, I wanting to show a limited number of Agendas / Minutes ( if available - there will always be some delay in posting the minutes with the agenda ) on the home page.
I want the workflow for the user to be easy and simple. So, it seems that creating a separate CPT for Agenda and Minutes might be the way to go - that forces a relationship to be created between the two - that seems too complex a solution for the user.
As I say again - I am exploring options here ...
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Steve,
There are other options as you can use a taxonomy or a custom field for the Agenda.
You can pretty much use anything to represent one or the other but it has to be in a way that its filterable.
However I think the Parent/Child relationship is the best way to go, but I must admit the workflow may not be the clearest one to follow.
Thanks,
Shane
Shane,
Duly noted and thanks for your input. I'll plug away at this - I am thinking about adding more "types" of Agendas / Minutes as there are a number of these.
But I completely get what you mean by them being filterable.
Again - let's keep this open for the time being and I will update to close when I am done.
Good work Shane - you've been a ton of help.
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hi Steve,
This ticket can remain open if you update me at least once a week so the system doesn't auto close it.
No need to respond after this but please update me at least once a week until we get this one resolved.
Thanks,
Shane
Shane,
I have solved my issue ...
To recap.
1) I wanted to show Agendas / Minutes as a 2 column structure within the same CPT
2) Different views - where on one page ( Agenda / Minutes Page ) - I would show all. Also, limited set of rows on landing Page
3) Preferably, I would just show Agenda / Minutes as a custom field, which could itself link to a PDF
4) Also, there are a number of different types of Agendas / Minutes - different departments if you like - search filter if possible
5) Easy workflow for the client
So ...
1) Created one CPT ( Agenda / Minutes )
2a) Within that, create each Agenda / Minutes for the different departments. Create Berry agenda / minutes
2b) Create repeatable custom fields; Berry Agenda Text, Berry Agenda URL ( pointing to a PDF ), Berry Minutes Text, Berry Minutes URL
2c) Create a taxonomy Group - Berry's would be Berry ...
3a) Create a view using Repeatable Groups
3b) Create a Query filter "Select posts in Any relationship that are related to the Post where this View is shown"
3c) Will create a select filter ( need to test this )
3d) Create a table in Loop wizard - add in table head tags for column titles
3e) - Custom fields ... Berry Agenda Text needs to link Berry Agenda URL and Berry Minute Text needs to link to Berry Minute URL. Managed to find a solution in the forum to do just that.
<td> [types field='berry-agenda-text'][/types]</td>
<td> [types field='berry-minutes-text'][/types]</td>
4) Tested limits - works great!
5) Now, for the Agenda Page - all will be shows, groupings allow for filterable search ...
6) Client just needs to create additional repeatable group entries - and done!
So, Repeatable Groups was my answer.
By the way, in my travels, I was deleting views, repeatable groups, CPTs and I noticed that when I am in the view - I see some "orphaned" repeatable groups.
Before I found a solution - I actually deleted the plugins, deleted data in the d/base and re-installed the plugins - still I see those repeatable groups ( slug-names ) that should not be showing. They also do not show in the post field control either - it would be nice to delete these repeatable groups.