Forum Replies Created

Viewing 15 replies - 1 through 15 (of 33 total)
  • Thread Starter bondigor69

    (@bondigor69)

    well I just want to add it as php
    with title(not linked)
    and my custom thumbnail size

    Kind like this

    <?php the_title(); ?>
    <a  href="<?php echo wp_get_shortlink(); ?>">
    	<?php the_post_thumbnail( '350xXXX' ); ?>
    </a>

    Thread Starter bondigor69

    (@bondigor69)

    thank 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 functions

    Thread Starter bondigor69

    (@bondigor69)

    actually 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

    Thread Starter bondigor69

    (@bondigor69)

    alchymyth 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 pagination
    Thread Starter bondigor69

    (@bondigor69)

    sorry

    <?php
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    
    query_posts('posts_per_page=10&paged=' . $paged);
    ?>
    Thread Starter bondigor69

    (@bondigor69)

    thank you for your help guys I installed php 5.3 and 5.4 with success
    Now it works

    Thread Starter bondigor69

    (@bondigor69)

    php 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

    Thread Starter bondigor69

    (@bondigor69)

    ok so should I go for php 5.4

    Thread Starter bondigor69

    (@bondigor69)

    and wp-admin = loop redirect

    Thread Starter bondigor69

    (@bondigor69)

    page not found

    Thread Starter bondigor69

    (@bondigor69)

    ok I did it but it didnt work
    when I tried to install another plugin (w3 total cache) it did the same thing

    I 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”;… yes

    Thread Starter bondigor69

    (@bondigor69)

    php 5.2 ang mySQL 5

    Thread Starter bondigor69

    (@bondigor69)

    no i dont

    Thread Starter bondigor69

    (@bondigor69)

    Showing 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”;} yes

    Thread Starter bondigor69

    (@bondigor69)

    Same problem persist

Viewing 15 replies - 1 through 15 (of 33 total)