bondigor69
Forum Replies Created
-
Forum: Plugins
In reply to: [YARPP - Yet Another Related Posts Plugin] Display related posts in templatewell I just want to add it as php
with title(not linked)
and my custom thumbnail sizeKind like this
<?php the_title(); ?> <a href="<?php echo wp_get_shortlink(); ?>"> <?php the_post_thumbnail( '350xXXX' ); ?> </a>
Forum: Plugins
In reply to: [WP-PageNavi] 404 after page 20thank you
I just removed that piece
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'post', 'posts_per_page' => 24, 'paged' => $paged ); $wp_query = pre_get_posts($args);
and it worked.
Probably already in my theme functionsForum: Plugins
In reply to: [WP-PageNavi] 404 after page 20actually they don’t support modifications. I made a lot
if you mean like that, it gives me a error<?php get_header(); ?> <div class="b_content clearfix" id="main"> <!-- Start content --> <div class="b_page clearfix"> <div class="entry-content"><div class="page_posts"><ul> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'post', 'posts_per_page' => 24, 'paged' => $paged ); $wp_query = pre_get_posts($args); while ( have_posts() ) : the_post(); ?> <li><div class="relatedthumb"><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'Related-Thumb' ); ?><?php the_title(); ?></a></div></li> <?php endwhile; ?> </ul> </div> </div> <?php wp_pagenavi(); wp_reset_query(); ?> </div> </div> </body> </html>
Fatal error: Class ‘pre_get_posts’ not found in /home/giantgag/public_html/wp-content/themes/megusta/front-page.php on line 11
Forum: Plugins
In reply to: [WP-PageNavi] 404 after page 20alchymyth thank you for always be there for me. you the best.
here’s the code that I use
<?php get_header(); ?> <div class="b_content clearfix" id="main"> <!-- Start content --> <div class="b_page clearfix"> <div class="entry-content"><div class="page_posts"><ul> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'post_type' => 'post', 'posts_per_page' => 24, 'paged' => $paged ); $wp_query = new WP_Query($args); while ( have_posts() ) : the_post(); ?> <li><div class="relatedthumb"><a href="<? the_permalink()?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'Related-Thumb' ); ?><?php the_title(); ?></a></div></li> <?php endwhile; ?> </ul> </div> </div> <?php wp_pagenavi(); wp_reset_query(); ?> </div> </div> </body> </html>
If i put this code inside a page template it work fine but on front page template it does he 404 after page 20
Any ideas
Forum: Fixing WordPress
In reply to: Post paginationsorry
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('posts_per_page=10&paged=' . $paged); ?>
Forum: Fixing WordPress
In reply to: 404 pages on plugin installsthank you for your help guys I installed php 5.3 and 5.4 with success
Now it worksForum: Fixing WordPress
In reply to: 404 pages on plugin installsphp 5.3 with 5.4 I’ll install them.( But I’ll have to wait or tomorrow)
I just reinstalled wordpress 3.6 and it does the same thing
Forum: Fixing WordPress
In reply to: 404 pages on plugin installsok so should I go for php 5.4
Forum: Fixing WordPress
In reply to: 404 pages on plugin installsand wp-admin = loop redirect
Forum: Fixing WordPress
In reply to: 404 pages on plugin installspage not found
Forum: Fixing WordPress
In reply to: 404 pages on plugin installsok I did it but it didnt work
when I tried to install another plugin (w3 total cache) it did the same thingI checked in the database and I run this
SELECT * FROM wp_options WHERE option_name = ‘active_plugins’;I see
Full texts option_id option_name option_value autoload
Edit Edit Copy Copy Delete Delete 35 active_plugins a:1:{i:0;s:33:”w3-total-cache/w3-total-cache.php”;… yesForum: Fixing WordPress
In reply to: 404 pages on plugin installsphp 5.2 ang mySQL 5
Forum: Fixing WordPress
In reply to: 404 pages on plugin installsno i dont
Forum: Fixing WordPress
In reply to: 404 pages on plugin installsShowing rows 0 – 0 (1 total, Query took 0.0005 sec)
SELECT *
FROM wp_options
WHERE option_name = ‘active_plugins’
LIMIT 0 , 30
[ Inline ] [ Edit ] [ Explain SQL ] [ Create PHP Code ] [ Refresh ]Start row: Number of rows: Headers every rows
+ Options
Full texts option_id option_name option_value autoload
Edit Edit Copy Copy Delete Delete 35 active_plugins a:1:{i:0;s:25:”wp-smushit/wp-smushit.php”;} yesForum: Fixing WordPress
In reply to: 404 pages on plugin installsSame problem persist