grunlof
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Show archive of a categoryAny solution???
Forum: Fixing WordPress
In reply to: Show archive of a categoryI cant find a right solution.
Forum: Fixing WordPress
In reply to: Problem with includesMy problem really is like in this post:
https://www.ads-software.com/support/topic/89404?replies=6But I cant understand how to resolve it. :s
Forum: Fixing WordPress
In reply to: Problem with includesOk.
This is my index.php<?php get_header(); ?> <div id="wrapper"> <div class="head"> <h1><span><a>/" title="Hompage"><?php bloginfo('name'); ?></a></span></h1> <?php include (TEMPLATEPATH . '/searchform.php'); ?><br class="clear" /> </div> <div class="content"> <?php if (have_posts()) : ?> <?php if (is_category()) { ?> <h2><?php echo single_cat_title(); ?></h2> <?php } elseif (is_single()) { ?> <h2><?php the_title(); ?></h2> <?php } elseif (is_home()) { ?> <h2>News</h2> <?php } elseif (is_day()) { ?> <h2>Articles <?php the_time('j \d\e F \d\e Y'); ?></h2> <?php } elseif (is_month()) { ?> <h2>Articles <?php the_time('F \d\e Y'); ?></h2> <?php } elseif (is_year()) { ?> <h2>Articles <?php the_time('Y'); ?></h2> <?php } elseif (is_search()) { ?> <h2>Results</h2> <?php } elseif (is_author()) { ?> <h2>About</h2> <?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h2>Archive</h2> <?php } ?> <?php while (have_posts()) : the_post(); ?> <?php if (in_category('10')) continue; ?> <h3><a>" title="<?php the_title(); ?>"><?php the_title() ?></a></h3> <small><?php the_time('j \d\e F \d\e Y') ?></small> <?php the_content('(more...)'); ?> <?php endwhile; ?> <?php else : ?> <h2>Not found</h2> text <?php endif; ?> <p class="masizq"><?php next_posts_link('« old') ?> <p class="right"><?php previous_posts_link('next »') ?> </div> </div> <?php include (TEMPLATEPATH . '/column2.php'); ?> <?php include (TEMPLATEPATH . '/column3.php'); ?> <br class="clear" /> </div> <?php get_footer(); ?> </body> </html>
And in both includes I have the same code:
<?php if (is_page()) { echo 'I am a page'; } else { echo 'I am not a page'; } ?>
The problem is that first include shows me “I am a page” but the second one shows me “I am not a page”.
I cant find a solution.
Forum: Fixing WordPress
In reply to: Problem with includesNo ideas??
PleaseForum: Fixing WordPress
In reply to: Problems with is_page()is functions don’t work. Any idea?
Forum: Fixing WordPress
In reply to: Problems with is_page()I don’t know where is the problem. I have used the same in previous wordpress versions.
Forum: Fixing WordPress
In reply to: Problems with is_page()Forum: Fixing WordPress
In reply to: Problems with is_page()[mod – you edited the address, and it is wrong now! your page_id=2 was the About Page]
Forum: Fixing WordPress
In reply to: Problems with is_page()I dont’t understand. I have a page.php template file. But what can I do???
columna3.php is called from index.php and from page.php. And never happens anything.Forum: Fixing WordPress
In reply to: Problems with is_page()The conditional is in columna3.php
Forum: Fixing WordPress
In reply to: Problems with is_page()Ok, I have that code in an include archive.
At the end of the index.php I have the next code:<?php include (TEMPLATEPATH . '/columna3.php'); ?>
And in this archive I have the is_page.
If I am in a page with id=2, it must show me a title with some text. But nothing happens.Forum: Fixing WordPress
In reply to: Problems with calendarmy uri is: https://www.mydomain.com.
I use the same address for my blog.Forum: Fixing WordPress
In reply to: Problems with calendarI continue with the same problem.
Forum: Fixing WordPress
In reply to: Problems with calendaranybody can tell me which should be the correct .htaccess code???
Thanks a lot.