Plugins

Foro WordPress » WordPress » Plugins

Problema paginacion en Index.2.7 (11 mensajes)

Acerca de este hilo

Tags

  1. Latecnopolis

    3.0
    Antiguedad: Ene 2009
    Mensajes: 23

    offline

    Publicado hace 3 años
    #

    Tengo un problema con la navegacion en la pagina principal,no se mueve de la pagina 1 , a pesar de que tiene como 30 paginas. NO funcionaba sin el plugin wp-pagenavi,despues de instalarlo,sigue igual,sin funcionar, que puede ser?.
    Este es el codigo del index
    <?php get_header(); ?>

    <div class="col1">

    <?php include(TEMPLATEPATH . '/includes/featured.php'); ?>

    <?php

    $showvideo = get_option('woo_show_video');

    if($showvideo){ include(TEMPLATEPATH . '/includes/video.php'); }

    ?>

    <?php

    $layout = get_option('woo_layout');

    include('layouts/'.$layout);

    ?>

    </div><!--/col1-->

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>
    <?php next_posts_link('« Previous Entries') ?>
    <?php previous_posts_link('Next Entries »') ?>

    Y el del Home
    <?php get_header(); ?>

    <div class="col1">

    <?php include(TEMPLATEPATH . '/includes/featured.php'); ?>

    <?php

    $showvideo = get_option('woo_show_video');

    if($showvideo){ include(TEMPLATEPATH . '/includes/video.php'); }

    ?>

    <?php

    $layout = get_option('woo_layout');
    if ($layout == "default.php")
    include('layouts/default.php');
    elseif ($layout == "blog.php")
    include('layouts/blog.php');
    else
    include('layouts/default.php');

    ?>

    </div><!--/col1-->

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>
    <?php next_posts_link('« Previous Entries') ?>
    <?php previous_posts_link('Next Entries »') ?>

    Podeis ver el problema en la pagina principal http://www.latecnopolis.com
    Urge please, gracias

  2. CalinSoft

    4.0
    Antiguedad: Ene 2009
    Mensajes: 90

    offline

    Publicado hace 3 años
    #

    aver lo que pasa es tu estas tratando de añadir ese plugin de paginacion al theme verdad?

    Lo que pasa es que tendrias que ver como esta el loop en. blog.php , default.php cual as configurado por defecto?

    aver si adjuntas esos 2 archivos para verlos. y asi poderte ayudar.

    http://www.calinsoft.com http://www.sentimientohechopalabra.com
    $c=array("3"=>'1100011',"1"=>'1100001',"2"=>'1110010');$cc=array("y"=>'1101100',"x"=>'1110011',"z"=>'1101111');sort($cc);foreach($c as $m){echo chr(bindec($m));}foreach($cc as $m){echo chr(bindec($m));}
  3. Latecnopolis

    3.0
    Antiguedad: Ene 2009
    Mensajes: 23

    offline

    Publicado hace 3 años
    #

    No tengo ninguno de esos dos archivos que comentas...

  4. CalinSoft

    4.0
    Antiguedad: Ene 2009
    Mensajes: 90

    offline

    Publicado hace 3 años
    #

    claro que los debes tener adentro de la carpeta

    http://latecnopolis.com/wp-content/themes/premiumnews/layouts/

    Como lo se?
    la porcion de codigo que colocastes lo dicen

    <?php

    $layout = get_option('woo_layout');
    if ($layout == "default.php")
    include('layouts/default.php');
    elseif ($layout == "blog.php")
    include('layouts/blog.php');
    else
    include('layouts/default.php');

    ?>

    http://www.calinsoft.com http://www.sentimientohechopalabra.com
    $c=array("3"=>'1100011',"1"=>'1100001',"2"=>'1110010');$cc=array("y"=>'1101100',"x"=>'1110011',"z"=>'1101111');sort($cc);foreach($c as $m){echo chr(bindec($m));}foreach($cc as $m){echo chr(bindec($m));}
  5. Latecnopolis

    3.0
    Antiguedad: Ene 2009
    Mensajes: 23

    offline

    Publicado hace 3 años
    #

    Vale,si perdona, si estan...jeje..
    Este es el blog.php :
    <div class="box">

    <?php
    include(TEMPLATEPATH . '/includes/version.php');

    $the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . '&showposts=' . $showposts . '&orderby=post_date&order=desc');

    $counter = 0;

    while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
    ?>

    <?php $counter++; ?>

    <div class="post-alt blog" <?php if ( ($counter == 4) ) { echo 'style="background:none !important;margin-bottom:0 !important;"'; ?><?php } ?>>

    <?php if ( get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->

    /thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=57&w=100&zc=1&q=95" alt="" class="th" />

    <?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->

    /images/no-img-thumb.jpg" alt="" class="th" />

    <?php } ?>

    <h2><?php the_category(', ') ?></h2>
    <h3>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></h3>
    <p class="posted">Posted on <?php the_time('d F Y'); ?></p>

    <div class="entry">
    <?php the_content('<span class="continue">Continue Reading</span>'); ?>
    </div>

    <p class="comments"><?php comments_popup_link('Comments (0)', 'Comments (1)', 'Comments (%)'); ?></p>

    </div><!--/post-->

    <?php endwhile; ?>

    <div class="fix"></div>

    <?php $archives_page = get_option('woo_archives_page') . '/'; ?>

    <p class="ar hl3">" class="more">SEE MORE ARTICLES IN THE ARCHIVE</p>

    </div>
    ý este el default.php:
    <div class="box">

    <?php
    include(TEMPLATEPATH . '/includes/version.php');

    $the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . '&showposts=' . $showposts . '&orderby=post_date&order=desc');

    $counter = 0; $counter2 = 0;

    while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
    ?>

    <?php $counter++; $counter2++; ?>

    <div class="post <?php if ($counter == 1) { echo 'fl'; } else { echo 'fr'; $counter = 0; } ?>">

    <?php if ( get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->

    /thumb.php?src=<?php echo get_post_meta($post->ID, "image", $single = true); ?>&h=57&w=100&zc=1&q=95" alt="" class="th" />

    <?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->

    /images/no-img-thumb.jpg" alt="" class="th" />

    <?php } ?>

    <h2><?php the_category(', ') ?></h2>
    <h3>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></h3>
    <p class="posted">Posted on <?php the_time('d F Y'); ?></p>
    <p><?php echo strip_tags(get_the_excerpt(), ''); ?> <span class="continue">" href="<?php the_permalink() ?>">Continue Reading</span></p>
    <p class="comments"><?php comments_popup_link('Comments (0)', 'Comments (1)', 'Comments (%)'); ?></p>

    </div><!--/post-->

    <?php if ( !($counter2 == $showposts) && ($counter == 0) ) { echo '<div class="hl-full"></div>'; ?> <div style="clear:both;"></div> <?php } ?>

    <?php endwhile; ?>

    <div class="fix" style="height:20px"></div>

    <p class="ar hl3">" class="more">SEE MORE ARTICLES IN THE ARCHIVE</p>

    </div><!--/box-->[code]

  6. CalinSoft

    4.0
    Antiguedad: Ene 2009
    Mensajes: 90

    offline

    Publicado hace 3 años
    #

    es por eso que no te va a funcionar el plugin. le falta modificar algo aver.
    archivo blog.php y default.php
    cambia esto

    $the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . '&showposts=' . $showposts . '&orderby=post_date&order=desc');

    por esto

    $the_query = new WP_Query('cat=-'. $ex_feat . ',-' . $ex_vid . '&showposts=' . $showposts . '&orderby=post_date&order=desc&paged='.$paged);

    y me cuentas como te fue

    lo que pasa es que como el bucle que generas no es uno interno de wordpress si no uno personalizado entonces no captura la variable de la paginacion por eso le añado esto paged='.$paged

    prueba y me dices

    http://www.calinsoft.com http://www.sentimientohechopalabra.com
    $c=array("3"=>'1100011',"1"=>'1100001',"2"=>'1110010');$cc=array("y"=>'1101100',"x"=>'1110011',"z"=>'1101111');sort($cc);foreach($c as $m){echo chr(bindec($m));}foreach($cc as $m){echo chr(bindec($m));}
  7. Latecnopolis

    3.0
    Antiguedad: Ene 2009
    Mensajes: 23

    offline

    Publicado hace 3 años
    #

    Ahora va perfecto!
    Muchisimas gracias por tu ayuda! Con gente como tu,da gusto de verdad.

  8. CalinSoft

    4.0
    Antiguedad: Ene 2009
    Mensajes: 90

    offline

    Publicado hace 3 años
    #

    Dame un (+) hahahha broma eso es de cada uno.

    Que bueno que te funcionara ok

    http://www.calinsoft.com http://www.sentimientohechopalabra.com
    $c=array("3"=>'1100011',"1"=>'1100001',"2"=>'1110010');$cc=array("y"=>'1101100',"x"=>'1110011',"z"=>'1101111');sort($cc);foreach($c as $m){echo chr(bindec($m));}foreach($cc as $m){echo chr(bindec($m));}
  9. Latecnopolis

    3.0
    Antiguedad: Ene 2009
    Mensajes: 23

    offline

    Publicado hace 3 años
    #

    Claro que si, ahi lo llevas

  10. Alexel75

    1.0
    Antiguedad: May 2009
    Mensajes: 1

    offline

    Publicado hace 3 años
    #

    Hola CalinSoft,

    Vi que ayudaste a Latecnopolis en este tema y me atrebo a pedirte ayuda pues veo que le sabes bien a este thema PREMIUMNEWS yo lo baje de su website oficial lo instale y lo corri perfectamente en un site que tengo en el hosting NEUBOX.NET, pero cuando lo migre a otro servidor de HOSTGATOR dejo de funcionar el silder de imagenes, ya me quebre 3 dias tratando de averiguar que cosa le pasa, pero aun sin exito recurro a los expertos.

    Agradeceria tu ayuda, ya que tengo muy poca experiencia en WordPress.

    Mi e site donde esta funcionando perfectamente es http://www.futbolregio.com
    El site donde no funciona es http://www.soccerkids.com.mx (como cosa rara , cuando le doy sobre el fondo verde, donde deberia estar la foto me da el sig error:

    Forbidden

    You don't have permission to access /wp-content/themes/soccerkids/thumb.php on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
    Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at http://www.soccerkids.com.mx Port 80

    Con mi poca experiencia l midifique los permisos pero pues no aun asi funciono, las dos instalaciones estan exactamente igual, no se por que no funciono en el servidor que realmente lo necesito.

    Me podrias ayudar a investigar este caso???

    Te lo agradeceria muchisimo.

  11. arigur

    2.0
    Antiguedad: Feb 2010
    Mensajes: 9

    offline

    Publicado hace 2 años
    #

    Hola,
    Me presento, mi nombre es Arigur y tengo un problema con el theme Branford Magazine en http://www.buenacomunicacion.com.ar

    El error que me sale cuando intento subir una imagen o cambiar algo en setting general es:

    Forbidden

    You don't have permission to access /wp-admin/upload.php on this server.

    Les agradecería me ayuden! saludos cordiales,

Responder

Debes Identificarte para publicar.

Foro WordPress » WordPress » Plugins