cjhmdm
Forum Replies Created
-
Forum: Plugins
In reply to: [SEO Plugin by Squirrly SEO] Plugin breaks custom fieldsDo you know if Squirrly has any conflict*
(typo in my last post)
I don’t have an account as I just downloaded everything from the email when I purchased the plugin and add-ons pack… Sending you a support request now.
Thanks
I can send you the license key and email address. Would you be able to send me a new download for v1.5 so I can update it manually to see if that resolves the issue?
My server admin doesn’t want to give out admin access except as a very last resort.
Oh, right.. I meant to post that twice now… It’s a license error:
An error occurred while updating Ajax Load More: SEO: Download failed. Unauthorized
Hello,
We’re not receiving any errors, except when trying to update the SEO plugin. In fact, the seo plugin itself activates normally and seems to also function properly.
I’ll have to check with my server admin before giving admin access.
Forum: Plugins
In reply to: [SEO Plugin by Squirrly SEO] Plugin breaks custom fieldsHello,
Thanks for getting back to me. Do you Squirrly has any conflict with the “Advanced Custom Fields” plugin?
Thanks
Please disregard. I found the cause of the issue.
For anyone else who might run into a similar this issue, make sure you have some footer content, otherwise you simply won’t be able to scroll down far enough to activate the function.
Alternatively, set the “Scroll Distance” option to 0 if you have no footer.
Forum: Plugins
In reply to: [WPF-Login] [Plugin: WP FLogin] Infinite Redirect issuePerhaps it’s an issue with multisite? Here’s my default WP htaccess:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L] RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L] RewriteRule . index.php [L] </IfModule>
Forum: Fixing WordPress
In reply to: Change posts_per_page count on paginated pagesWorks perfectly keesiemeijer.
Thank you so much for this ??
Forum: Fixing WordPress
In reply to: Change posts_per_page count on paginated pagesJust to update with the solution I settled on…
I used the following method to handle pagination:
global $wp_query; $big = 999999999; // need an unlikely integer if ($wp_query->max_num_pages > 1 && $paged < 2): $totalpages = 2; else: $totalpages = $wp_query->max_num_pages; endif; echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'total' => $totalpages ) );
The reason for doing it this way is – as explained above – changing the posts_per_page variable from pge 1 to page 2-x causes page 1 to shoe more page links than exist… for example, while on page 1, it shows there are a total of 5 pages but when you go to page 2, there are only a total of 3. Which then leads to a blank page if a visitor were to click on the link to page 5, et al.
The above basically does the same thing but in reverse.
First the script checks that there is more than 1 page, as well as checks whether or not you’re on page 1. If both return true then it only shows 2 pages. Then, once you go to page 2, you get the rest of the pagination functioning properly.
Thanks again keesiemeijer
Forum: Fixing WordPress
In reply to: Change posts_per_page count on paginated pagesWell, I almost have it how I want it… I’m trying to use paginate_links instead of wp-pagenavi and now all I need to do is find out how to remove the link to the last page next to the ‘Next’ link and I’ll be set… I’ll probably have to create my own function for it based off the original one but oh well lol…
Forum: Fixing WordPress
In reply to: Change posts_per_page count on paginated pagesThanks a lot for the help keesiemeijer. Everything is working as I wanted it to. The only caveat to doing this is that page 1 shows there are a total of 5 pages, but page 2 shows there are only 3 pages total, same with page 3. Obviously, this is due to showing more posts on pages 2 & 3 than on page 1, so it’s something I can live with.
Thanks again keesiemeijer and have a good one ??
Forum: Fixing WordPress
In reply to: Change posts_per_page count on paginated pagesIf it helps, look at it as a CMS as opposed to a blog.
Nonetheless, I may have figured out what was going wrong with the example you gave, and am testing it out now.
Thanks again
Forum: Fixing WordPress
In reply to: Change posts_per_page count on paginated pagesNo sir, you are incorrect.
This is a custom page (main_page.php) and basically serves as the home page. This page will only show posts from the ‘updates’ category, while other pages – which will be similar to this page – will show posts from other categories.
I won’t be using a ‘categories’ type page at all.
Forum: Fixing WordPress
In reply to: Change posts_per_page count on paginated pagesThis sort of works. Posts now show up on pages 2-x, but once I view a paginated page, the pagination itself is removed.. for example, if I click on page 2, I see the proper posts, but I no longer have links back to page 1 or to pages 3-5. This is using wp_pagenavi btw. I also get the same result when using the standard next/previous style pagination.
Any ideas?