However one table has about 60,000 lines of code in creating an HTML table and when I copy/paste into the post the server just drags, locks up and sometimes dies. I have to restore the entire server.
Is there a MySQL limitation, PHP, WP?
]]>[nlposts number_posts=1 title_only=false display_type=block thumbnail=true auto_excerpt=true full_meta=true thumbnail_wh=200×200 sorting_limit=4]
What am I doing wrong if I would like to limit the number of posts displayed to 4?
Thank you!
https://www.ads-software.com/plugins/network-latest-posts/
]]>I’m currently building a theme where, on the first page of the theme, I’m showing 3 posts, then on page 2 or higher, I want to show 12 posts.
I use the following code to grab the page number and change my loop settings (as the styles are very different from frontpage to page 2).
<?php if ( !is_single() && $paged > 1 ) { ?> <!-- This is for pages after the frontpage, so page numbers > 1. -->
<div id="maincontent2">
<div id="loopheader2">
<?php echo previous_posts_link( __( '<< Newer posts' ) ); ?>
<div id=nextpost>
<?php next_posts_link( __( 'Older posts >>') ); ?>
</div> <!--id="nextpost" -->
</div> <!--id="loopheader" -->
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div id="older">
<?php attachment_image_or_postthumb('thumbnail'); ?>
<br />
<div style="text-indent:10px;">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
</div> <!-- style="text-indent:10px;" -->
</div> <!--id="older" -->
<?php endwhile; ?>
<?php endif; ?>
<br />
</div> <!-- id="maincontent" -->
<!-- This is where the if switches to the first page -->
<?php } else { ?>
<div id="maincontent">
<div id="loopheader">
<? echo "Latest Posts"; ?>
<div id=nextpost>
<?php next_posts_link( __( 'Older posts >>',0 ) ); ?>
</div><!--id="nextpost" -->
</div> <!--id="loopheader" -->
<?php if (have_posts()) : $count = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php if($counter==0) { echo 'id="first"'; $counter++; } else { echo 'id="rest"'; $counter++; } ?>>
<?php attachment_image_or_postthumb('thumbnail'); ?>
<br />
<div style="text-indent:10px;">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a>
</div> <!-- style="text-indent:10px;" -->
</div> <!--id="older" -->
<?php endwhile; ?>
<?php endif; ?>
I’ve tried using the Custom Post Limits plugin by coffee2code but when I do the next posts link disappears on page 2, despite there being more than 15 posts.
I’ve tried using query_posts and showposts but when I get to page 2 its starts on post 13.
Can anyone suggest a solution?
]]>I want to know if there’s a way I can edit archive-event.php so that it shows a different number of event posts than the number set by the universal WP post limiter in the Settings area. I know there’s a way to do it in the shortcode, but that doesn’t help me here. I want to control it from the template. Is this possible?
Thanks,
Jeremy
https://www.ads-software.com/extend/plugins/event-organiser/
]]>First issue can be found @ https://www.ads-software.com/support/topic/plugin-the-events-calendar-dynamic_sidebar-hiding-gridview
So on to the second issue, I’ve found an issue with the pagination of upcoming events in the list view, when running the Post Limits plugin.
When a user clicks on the Event List option, changing the url to https://www.charlosa.com/blog/events/upcoming/ the first page displays correctly, as does Page 2, having selected “Next Events”, however page 2 does not show the “Next Events” link, despite there being more events to show.
Following some investigation, I was able to track the issue down to the use of another Plugin called Post Limits and specifically that The Event Calendar is using what Post Limits calls the “Front Page Limit” and the corresponding “paged (non first page)”.
Now I appreciate that the simply answer to get pagination working would be to simply deactivate the Post Limits plugin (and this has been tested and works), but seen as the ability to limit the number of posts per page across the site is a key factor in the styling of the site, I don’t really see that as a viable solution.
I do like The Events Calendar and I’d like to stick with it, but I need to find a solution to allow it to work with the Post Limits plugin.
I guess it’s also worth pointing out that if the grid view issue linked above can be resolved, then this becomes less of a headache and more of a nuisance – as without Gridview working, the Calendar is totally dependent on the List View working properly
Any ideas please?
]]>What I want to do is allow users to join my blog and they can post their content. But I want only allow a certain number of posts per user per week, or a few times a week, or just once a day.
The restriction will be different for different types of WP user roles.
The category will be different for each user role. So one category will be used for people who can post once a day, and a different category will be used for those who can post once a week, etc.
I have tried searching around, but I can’t find any plugin that does this.
The plugin “WP Post Limits” is almost what I need, but not quite.
Any help would be much appreciated, thanks!
]]>I like to create my post i this manner:
< First 500 words>
< Ads/images >
< Continue post after 500 Words>
Can anyone give me some idea?
]]>