connectto
Forum Replies Created
-
ok solved with the code below:
<?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; ?>
<?php query_posts(“cat=41,8&showposts=6&paged=$paged”); ?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>really thanx alchymyth !
tried other solutions looking in google – till now nothing worked
the only advance i had was with alchymyth tip – initially the older posts button didnt even appear
then i did the changes and now i can see olde posts button – when i click in it i see i navigate to page 2, page 3 etc – but all pages show same content
found some material here in forum and google – most of the posts talk about this but not in a template page situation
anyway i tried the solutions i found in my research and nothing worked
im really with a big problem – need to solve it with some urgency .. anyone have a clue about whats going on ?
(sorry my bad english)
Forum: Fixing WordPress
In reply to: image upload error – wrong upload folder pathsolved – change my windows host to linux host
thanx ??
hello alchymyth thanx for your reply !
about your question: yes i changed that part also
now the navigation button appears but all pages show the first page content ..
heres the link https://www.travelcouture.com.br/?page_id=9
well i could solve all the problems till now – this is the only one i couldnt solve anyway ?? – hope you or someone can give me a hand heheh
really thanx alchymyth for your support !
heres my complete code now (with the changes that alchymyth posted):
<?php
/*
Template Name: Viagem
*/
?>
<?php
/**
* The template for displaying all pages.
*
* @package WordPress
* @subpackage Matala
*/get_header(); ?>
<div id=”primary”>
<div id=”content” role=”main”>
<?php query_posts(”);?>
<?php query_posts(‘cat=40&showposts=6′.’&paged=’.get_query_var(‘paged’));?>
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?><article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<header class=”page-header”>
<h1 class=”page-title”><?php the_title(); ?></h1>
</header><!– .page-header –><div class=”entry-content”>
<?php the_content(); ?>
<?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”><span>’ . __( ‘Pages:’, ‘matala’ ) . ‘</span>’, ‘after’ => ‘</div>’ ) ); ?>
</div><!– .entry-content –>
<div class=”entry-meta”>
<?php edit_post_link( __( ‘Edit’, ‘matala’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
</div><!– .entry-meta –>
</article><!– #post-<?php the_ID(); ?> –><?php comments_template( ”, true ); ?>
<?php endwhile; // end of the loop. ?>
<div class=”navigation”>
<span class=”nav-previous”><?php next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older <span>posts</span>’, ‘matala’ ) ); ?></span>
<span class=”nav-next”><?php previous_posts_link( __( ‘Newer <span>posts</span> <span class=”meta-nav”>→</span>’, ‘matala’ ) ); ?></span>
</div></div><!– #content –>
<?php
/* Two columns of sidebars.
*/
get_sidebar( ‘supplementary’ );
?>
<div id=”primary-bottom”></div>
</div><!– #primary –><?php get_sidebar(); ?>
<?php get_footer(); ?>thanx alchymyth its partialy solved with your tips.
now the “older posts” buttons appear, and i can navigate to the other pages page_id=589&paged=2 , page_id=589&paged=3 , etc
but the content is allways the same, the posts of paged=1
50% solved anyone can help to solve the other 50% hehe ?
the full code of my template page :
[Code moderated as per the Forum Rules. Please use the pastebin]
Forum: Fixing WordPress
In reply to: image upload error – wrong upload folder pathhello esmi really thanx for your answer
actually everything is already set to 777 – it seems to be default in the server im hosted and i cant change this number via ftp.
this seems to be other kind of error.
the first test i found on google about it was to change the permissions to 777 and when i check everything was already set to 777 so shouldnt experience thins kind of problem..
anyone have this same error ? please help hehe ??