Patrick Jackson
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts in Page] Modifying posts_loop_template.phpYes, you should only need to add the
template
attribute if you change the name.Forum: Plugins
In reply to: [Posts in Page] featured image as a background imgHi mfebrey,
I’m glad you like the plugin!
I’m not sure if this is what you’re looking for, but if you want to get at the featured image URL, here’s a solution I grabbed from css-tricks.
$thumb_id = get_post_thumbnail_id(); $thumb_url_array = wp_get_attachment_image_src($thumb_id, 'thumbnail-size', true); $thumb_url = $thumb_url_array[0];
Forum: Plugins
In reply to: [Posts in Page] Post in page is being spitAh yes, that second page is telling.
When I look at the html for that page, I see that the posts are being nested somehow. So, it looks like you may be missing a closing div tag somewhere.
Did you customize the posts loop template, or do you have some div tags in your content?
??I used this handy div tag checker, and it shows you have a missing closing div tag somewhere.
Forum: Plugins
In reply to: [Posts in Page] Plugin causing issues with theme templateHi alicekenny,
It looks like you may have some mismatched DIV tags. If you don’t have closing div tags (</div>) in the right place for each opening div tag (<div>), it can wreak havoc on the larger page layout.
I added them in the snippet below. Does that help?
You might check elsewhere in your site, too. I checked your page on a DIV tag checker, and it reported 6 missing closing div tags. If you’re still having trouble, you may need to track down the other 4. ??
<!-- Note: if you make changes to this file, move it to your current theme's directory so this file won't be overwritten when the plugin is upgraded. --> <hr> <!-- Start of Post Wrap --> <div class="post hentry ivycat-post"> <!-- This is the output of the post title --> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <!-- This will output of the featured image thumbnail --> <div class="featured-image"> <?php the_post_thumbnail( 'thumbnail' ); ?> </div> <!-- This is the output of the excerpt --> <div class="entry-summary"> <div style="font-family:Helvetica, Arial, sans-serif;"> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>"?>Read more..</a> </div> </div> </div> <!-- // End of Post Wrap --><!-- Note: if you make changes to this file, move it to your current theme's directory so this file won't be overwritten when the plugin is upgraded. --> <hr> <!-- Start of Post Wrap --> <div class="post hentry ivycat-post"> <!-- This is the output of the post title --> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <!-- This will output of the featured image thumbnail --> <div class="featured-image"> <?php the_post_thumbnail( 'thumbnail' ); ?> </div> <!-- This is the output of the excerpt --> <div class="entry-summary"> <div style="font-family:Helvetica, Arial, sans-serif;"> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>"?>Read more..</a> </div> </div> </div> <!-- // End of Post Wrap -->
Forum: Plugins
In reply to: [Posts in Page] Post in page is being spitHi, I looked at your site, and I’m not seeing your issue. Did you get it resolved, or am I missing something?
Forum: Plugins
In reply to: [Posts in Page] possible to add "Older Posts" arrow?Hi slavibg,
I’m sorry to hear you had trouble. I double-checked, and when I add pagination, and filter by category, I only see the selected category posts listed. Please feel free to post a new support question and tell us more about your issue.
Forum: Plugins
In reply to: [Posts in Page] How to add event from plugin to postHi Flattergeist,
I think posts-in-page should work for you. Try using the post_type shortcode attribute to reference your events:
[ic_add_posts post_type='tribe_events' ]
What does that do for you?
We may need to put some thought into how to filter upcoming events from past events.
Forum: Plugins
In reply to: [Posts in Page] how to add a division of languagesHi Viktor-123,
The plugin doesn’t have a shortcode attribute to filter by language.
The only way I can think of to filter by language would be to use a tag or category to indicate the language, and filter on that using the tag or category attributes in the shortcode.
A little more advanced method might be to add a “language” taxonomy to indicate the language of a post, and use the tax and term shortcode attributes.
Forum: Plugins
In reply to: [Posts in Page] Limit excerpt to fixed number of wordsHi rrossi,
You can change the default excerpt length by adding the following filter to the functions.php file in your theme. In this example, you would change the length to 20 words.
function custom_excerpt_length( $length ) { return 20; } add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
Here’s the reference in the WordPress Codex.
Here’s a description of what the functions.php file is and how to find it.
Forum: Plugins
In reply to: [Posts in Page] possible to add "Older Posts" arrow?Hi cynops,
Have you tried adding paginate=’yes’ to your shortcode?
That should add Prev and Next pagination links.
[ic_add_posts paginate='yes']
Forum: Plugins
In reply to: [Posts in Page] Exclude categories from listHi marcusfrontender,
Yes, you can exclude one or more categories using the exclude_category attribute:
[ic_add_posts exclude_category='category-slug']
See the plugin installation page for more information on this
Forum: Plugins
In reply to: [Posts in Page] Show comments bellow postHi InS0mN1aC,
Yes, probably the simplest way would be to create a custom template as described in this discussion, and add the
comments_template()
function where you want to add the comments.For example, you might replace the existing comments link…
</span> <span class="meta-sep">|</span> <?php endif; ?> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'posts-in-page' ), __( '1 Comment', 'posts-in-page' ), __( '% Comments', 'posts-in-page' ) ); ?></span> <?php edit_post_link( __( 'Edit', 'posts-in-page' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> </div> </div> <!-- // Post Wrap End -->
… with comments_template()…
</span> <span class="meta-sep">|</span> <?php endif; ?> <?php comments_template(); ?> <?php edit_post_link( __( 'Edit', 'posts-in-page' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?> </div> </div> <!-- // Post Wrap End -->
Forum: Plugins
In reply to: [Posts in Page] displaying youtube videoHi ennol,
This is an interesting question.
When html is added to the content area, and the excerpt is automatically generated, the html will be removed. This is true for links as well.
However, most HTML is NOT filtered if you add it to the Excerpt field. In the case of the YouTube video, you can’t just add the link like you can in the content area, but you CAN use the iframe code generated by YouTube via the embed link.
So, if I wanted the following Taylor Swift video to show up on my post page, I could just use the [embed] shortcode and URL…
[embed]https://youtu.be/e-ORhEE9VVg[/embed]
If I wanted that same video to show in my Posts in Page listing for that post, I would also add the following to that post’s Excerpt field…
<iframe width="560" height="315" src="//www.youtube.com/embed/e-ORhEE9VVg?rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
I hope that helps!
Forum: Plugins
In reply to: [Posts in Page] remove Sharing and likesHi rrossi,
In cases where another plugin injects content, it can be a little tricky to get things to look just right.
In many cases, you can edit the Posts in Page template to customize your output; but in this case, another plugin is adding the content, so that may limit our options.
Arguably, the easiest way to handle a situation like this would be to use CSS to keep the unwanted content from rendering by using a display: none; command.
It looks like you already solved your issue on the above page, so I don’t see the offending content. I would need to see the exact html to suggest a CSS selector.
I hope that sheds some light on the subject, though. ??
Forum: Plugins
In reply to: [Posts in Page] Search resultsOut of the box, the search function doesn’t expand shortcodes in the content of a page before indexing it. This means content generated from a shortcode won’t show in search results.
You might try adding the Relevanssi plugin. Among many other enhancements to the search function, it does expand shortcodes before indexing.
I hope that helps!