- This topic has 7 replies, 2 voices, and was last updated 3 years, 1 month ago by
Ying.
-
AuthorPosts
-
February 2, 2023 at 2:40 pm #2519092
MsJenifer
I created a portfolio custom post type but the excerpt does not appear when I create a query loop to display dynamically. And, the dynamic image appears on the front-end, but on the backend–is this strange?
February 2, 2023 at 4:02 pm #2519131Ying
StaffCustomer SupportHi there,
Can you show me where the query loop is?
February 2, 2023 at 4:13 pm #2519139MsJenifer
Hi, They’re two:
1) homepage under latest projects
2) Element – Portfolio ArchiveFebruary 2, 2023 at 4:34 pm #2519157Ying
StaffCustomer Support1. I see that you are trying to use
post metaexcerptto output the excerpt, I checked the ACF, the field name is actuallyproject_excerptnotexcerpt, so try replace it withproject_excerptin your query loop setting.2. The Element – Portfolio Archive is assigned to a static page called Poforlio, well, as the element is set to loop template, the location has to have a default loop, but a static page doesn’t have it, so the entire element is not going to output anything.
The location should be
Portfolio archive, if you don’t see it, make sure thehas archiveis set totruefor the CPT.February 2, 2023 at 4:42 pm #2519162MsJenifer
Hi Ying,
Thanks for the quick response:
1) Can I use Content Source excerpt instead? Similar to how a regular post work?
2) Is “Portfolio archive” a link? Forgive my ignorance?
Thanks!
February 2, 2023 at 5:01 pm #2519176Ying
StaffCustomer Support1. Yes, you can select
Excerptfor the dynamic content source.
https://www.screencast.com/t/cCVEUiy2CBut your CPT doesn’t have the editor enabled, so they don’t really have any content other than the ACF fields.
Since they don’t have any content, they will NOT have any excerpt either, unless you manually add custom excerpts.2. Portfolio archive is an index page, it’s the same as blog, and it’s generated automatically by WordPress.
You can find theHas archivesetting in the CPT UI:
https://www.screencast.com/t/wVh9UPeX8UBeFebruary 2, 2023 at 7:09 pm #2519357MsJenifer
Okay got it.
1) I enabled the editor, now I see excerpt as an option.
2) I enabled has archive so that works-the portfolio page now uses the portfolio-archive template. Woo-hoo!Thank you, thank you thank you.
February 3, 2023 at 10:09 am #2520396Ying
StaffCustomer SupportNo problem 🙂
Happy to help!
-
AuthorPosts
- You must be logged in to reply to this topic.