-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No images or headings show in content #72
Comments
Can you tell us:
By default, the output of Posts in Page doesn't show all of the data but you can tweak the output. Check the pinned threads at the top of the WP.org support forum here: https://wordpress.org/support/plugin/posts-in-page/ Thanks! |
Hi Eric,
Apologies for the delayed response, I had internet connection problems.
The shortcode I am using is - [ic_add_posts category='reviews']
I have not yet customised my output template as I am unsure of how to do this. I’m not sure where in the theme directory I am supposed to edit. I’m quite scared I will mess everything up!
At the moment, only the text of the content is showing. There are no sub-headings or pictures like on the original post.
Any help/advice will be much appreciated.
Many thanks,
Dominique
From: Eric Amundson [mailto:notifications@github.com]
Sent: 11 October 2019 16:19
To: ivycat/posts-in-page <posts-in-page@noreply.github.com>
Cc: DominiqueBlogs <dominique.c.edwards@hotmail.com>; Author <author@noreply.github.com>
Subject: Re: [ivycat/posts-in-page] No images or headings show in content (#72)
My images and headings are not showing in the content
Can you tell us:
1. what shortcode you're using
2. if/how you've customized your output template?
By default, the output of Posts in Page doesn't show all of the data but you can tweak the output. Check the pinned threads at the top of the WP.org support forum here:
https://wordpress.org/support/plugin/posts-in-page/
Thanks!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#72?email_source=notifications&email_token=ANOUZA75XCCFUFLZ7MWMN2TQOCKPVA5CNFSM4I73DFZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBAKN3Q#issuecomment-541107950>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANOUZA3Y7XANVYESMHXCTO3QOCKPVANCNFSM4I73DFZQ>.
|
Howdy Dominique, Okay - I think I can help here.
By default, the Posts in Page plugin has a modest output that contains only the Excerpt, rather than the full Content of the post. If you have explicitly added an excerpt to the post, it should display what you entered but if you haven't added an excerpt, WordPress will make one based on the settings in your site or theme. Usually, that means that it takes the first X number of words or characters from the post's content, strips the HTML, and displays it. That's the catch: excerpts are pretty much just plain text so images, headings, or other HTML formatting that you entered in the main content of the post won't show. The good news is that it's not to hard to address this. First, before you customize anything, you need to copy the You can even rename it – but make sure to indicate that in the shortcode using the template='template_name.php'. These templates must exist in the theme directory or in a sub-directory named posts-in-page. I'd recommend creating a posts-in-page directory to keep your theme organized. Once you’ve copied that file, open it and look at line 24:
Change to:
I hope that helps! |
Hi Eric,
Thank you so much for your detailed response. Very helpful!
One more question, where do I find the theme directory?
Kindest Regards,
Dominique
Sent from Outlook<http://aka.ms/weboutlook>
…________________________________
From: Eric Amundson <notifications@github.com>
Sent: 18 October 2019 15:10
To: ivycat/posts-in-page <posts-in-page@noreply.github.com>
Cc: DominiqueBlogs <dominique.c.edwards@hotmail.com>; Author <author@noreply.github.com>
Subject: Re: [ivycat/posts-in-page] No images or headings show in content (#72)
Howdy Dominique,
Okay - I think I can help here.
I have not yet customised my output template as I am unsure of how to do this. I’m not sure where in the theme directory I am supposed to edit. I’m quite scared I will mess everything up!
At the moment, only the text of the content is showing. There are no sub-headings or pictures like on the original post.
By default, the Posts in Page<https://wordpress.org/plugins/posts-in-page/> plugin has a modest output that contains only the Excerpt<https://wordpress.org/support/article/excerpt/>, rather than the full Content of the post. If you have explicitly added an excerpt to the post, it should display what you entered but if you haven't added an excerpt, WordPress will make one based on the settings in your site or theme.
Usually, that means that it takes the first X number of words or characters from the post's content, strips the HTML, and displays it.
That's the catch: excerpts are pretty much just plain text so images, headings, or other HTML formatting that you entered in the main content of the post won't show.
The good news is that it's not to hard to address this.
First, before you customize anything, you need to copy the posts_loop_template.php from the plugin's template directory to your theme directory and make changes as necessary.
You can even rename it – but make sure to indicate that in the shortcode using the template='template_name.php'.
These templates must exist in the theme directory or in a sub-directory named posts-in-page. I'd recommend creating a posts-in-page directory to keep your theme organized.
Once you’ve copied that file, open it and look at line 24:
<!-- This outputs the post EXCERPT. To display full content including images and html,
replace the_excerpt(); with the_content(); below. -->
<div class="entry-summary">
<?php the_excerpt(); ?>
</div>
Change to:
<!-- This outputs the post EXCERPT. To display full content including images and html,
replace the_excerpt(); with the_content(); below. -->
<div class="entry-summary">
<?php the_content(); ?>
</div>
I hope that helps!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#72?email_source=notifications&email_token=ANOUZAZVHTURJ2ZSM24FFT3QPG7VBA5CNFSM4I73DFZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBUTEKY#issuecomment-543765035>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANOUZA575DCC5LZJETCILDLQPG7VBANCNFSM4I73DFZQ>.
|
Hello Dominique, Not sure where you're hosting the site but the path for the theme directory is usually:
Usually, you'd get to it via FTP or your hosting account's file manager if they provide one. Does that make sense? |
Hi there, I feel a bit silly as I have tried to edit to show all content but I'm still not understanding how to do this. I'm not sure I am editing the right bit and what information I need to be putting and where? I have been advised by wordpress to create a child theme in order to make changes? I have a wordpress site and siteground is my hosting provider. I will continue to research and try and solve this in the meantime. Kind Regards, |
Hello DominiqueBlogs, I am sorry for the late reply here. Thanks for using the plugin, |
My images and headings are not showing in the content
The text was updated successfully, but these errors were encountered: