- This topic has 8 replies, 2 voices, and was last updated 2 years, 11 months ago by
Leo.
-
AuthorPosts
-
April 6, 2023 at 1:22 pm #2600078
Mel
Hi,
I am using the MyPet Template.
My client wants small “event announcement” content boxes on the Home Page that show up only if she has an upcoming event. Sometimes there could be 3 (or possibly more?) events, sometimes none. They would have heading, text (not sure yet how much, probably only small description), and possibly an image (again, not sure yet).
What is the best way to set this up so it is easy for the client to, later on, manage and edit this section by herself? She would be editing the whole site content in the future, I have to train her for this.
Thanks
MelApril 6, 2023 at 3:09 pm #2600179Leo
StaffCustomer SupportHi there,
What is the best way to set this up so it is easy for the client to, later on, manage and edit this section by herself?
Hmm this question is a bit vague for us to answer as it completely depends on you as the developer and your client.
It’s also not a theme-related question.
Maybe try a couple of options that you have in mind and discuss with your client to see which method works best for him/her?
April 6, 2023 at 3:31 pm #2600202Mel
I was thinking of creating a custom post type for this, would that work? Do I need a plugin for this and do I need to create a child theme and work in the core files?
April 6, 2023 at 3:36 pm #2600209Mel
Hi again,
A colleague suggested the following:
Re: the dynamic
Content on the front page you can use posts or a CPT for updates, and then use a query loop to show the 3 latest featured items or the 3 latest items of category or tagged front-page for example. The client will then need to update or change the tag or category to show or hide the items.Is this a good idea for my requirements? How would I do this?
April 6, 2023 at 4:43 pm #2600264Leo
StaffCustomer SupportIs this a good idea for my requirements?
I believe so but this is something you will need to try and determine if it’s good for you and your client’s need.
How would I do this?
Sorry – do what specifically? Setting up the CPT?
If so you can Google “setting up CPT WordPress” to see lots of related info.And here are the articles related to the Query loop block: https://docs.generateblocks.com/collection/query-loop/
The rest of the steps are already specified by in your colleague’s reply.
We can only help with GP related questions here:
https://generatepress.com/what-support-includes/You will need to configure the site structure as you see fit.
April 6, 2023 at 4:57 pm #2600275Mel
Ok thanks for the info
April 6, 2023 at 6:51 pm #2600347Leo
StaffCustomer SupportNo problem 🙂
April 6, 2023 at 7:09 pm #2600357Mel
Hi, I managed to create a Custom Post Type using the Custom Post Type UI plugin. I would like to edit the standard template for archives and single posts. I read I need to add a custom template for my custom post type to my WordPress theme.
I need to download the archive.php file to my computer.
Once downloaded, I need to rename the file to archive-{posttype}.php where {posttype} is the name of my custom post type.
Then edit the file and upload it again.
So since I am using the GP MyPet template, I would like to know, do I need to create a child theme for this and do the changes there?
Thanks
MelApril 7, 2023 at 12:50 pm #2601377Leo
StaffCustomer SupportPlease take a look at this article first and open a new topic if you have more questions:
https://docs.generatepress.com/article/setting-up-a-simple-custom-post-type/Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.