-
AuthorPosts
-
April 25, 2018 at 4:13 pm #946666
Hi
I need to show the excerpt on a single post. (Preferable with it’s own styling) I can’t find any settings for that in the theme options. What is the preferred way to do this? I use a child-theme on v 4.2April 27, 2018 at 5:57 am #947640Hey Magnus,
I’m not sure what would be the purpose of having the excerpt on a single page, since the purpose of the single page is the show the full content?
Best regards,
RikardApril 27, 2018 at 7:17 am #947676I asked the same thing to the CMO that wanted this… :/ It’s a press-release and the “whole” text must be in the same page. The CMO is having special text in the excerpt and not a using it as it should be used!
So, it is like this and I would like to know how it’s done… ;) Is it possible that you can help with this?
- This reply was modified 6 years, 7 months ago by Jahrl.
April 29, 2018 at 5:30 am #948515Hi Jahrl,
Are you building the posts with the Default editor or with the Advanced Layout Builder? You can add the excerpts “manually” as some text block, anywhere you need them.
Best regards,
VictoriaApril 29, 2018 at 8:41 pm #948711Hi Victoria
I’m using “Single post with small preview image (featured image” as standard. There is a JSON script importing the data from a external system. (Listed company) and the excerpt data is imported and used on the “category” page but now the CMO wants to have the whole press release in a uniq link.
I would really appreciate all the help I can get here so I don’t mess up this CRON work adding new press releases
All the best!
.mangeMay 2, 2018 at 7:00 am #949852Hi,
There is a JSON script importing the data from a external system. (
How do you import the data with that script? Couldn’t you just convert the data to an actual post or page?
Best regards,
IsmaelMay 3, 2018 at 1:41 pm #950761Hi
The import is done via a scheduled Cron job set up on the server.
It is converted to a post and the excerpt is there (with images, links and all other content), used on category page.Now we also want to show it on the post pages… All help is appreciated
.m
May 4, 2018 at 3:52 pm #951737Hi,
The post page is using the includes > loop-index.php file. Have you tried to edit that file? If you want to display the excerpt, try to use the “get_the_excerpt” function below line 224 where the actual content is rendered.
echo $content_output;
I’m not really sure how you set up the posts or retrieve the data so this is the only thing that comes to mind.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.