Forum Replies Created

Viewing 9 replies - 16 through 24 (of 24 total)
  • I’m sorry if i misunderstand your problem, but why don’t you simply use:

    <a href="<?php bloginfo('url');?>/your_page.php"> link </a>

    php bloginfo(‘url’) generates your homepage url relative to your domain.

    Thread Starter jabbo126

    (@jabbo126)

    I’ve solved it. I don’t know how, but really ther MUST be some spaces, even if i deleting like mad, hold del.(at end) and backspace(at front) for abou 30 seconds and then Save as without keyboard. Nothing helps. Then i just upload different functions.php from one tutorial i was making and voala … it works. So i just copy/pase my functions without <?php ?> – and put it into tahat working file. Suddenly it works. I still don’t understand it completly, becouse i’ve tried to upload different functions.php from another theme and it doesn’t work. Now it is. Im glad, but still little bit nervous about this issue. Is really wierd…

    Thread Starter jabbo126

    (@jabbo126)

    Thanx anyway …

    Thread Starter jabbo126

    (@jabbo126)

    But i don’t think that is it – becouse even if i upload function.php from default template in to it it do the same Warning message. But if i change templat to default, it works. So… i really don’t know.

    Thread Starter jabbo126

    (@jabbo126)

    As I said – i actually read that page and i actually do everything it says …

    Thread Starter jabbo126

    (@jabbo126)

    I’ve done it the way that is describe there. In my function.php and in my pluggable.php.

    1.Place the cursor between the ? and >
    2.Now press the DELETE key on your computer
    Note to MAC users: The “DELETE” key on a PC deletes characters to the right of the cursor. That is the key noted here.
    3.Keep that key pressed
    For at least 15 seconds
    4.Now type > and
    5.save without pressing any other key at all.
    6.If you press another key, you will bring the problem back.
    DO NOT PUT CODE IN UNNECESSARY CODE BLOCKS, PUT THEM IN A SINGLE PHP BLOCK.

    Thread Starter jabbo126

    (@jabbo126)

    How can i have empty spaces in document, where is nothing? Becouse i tried to empty the file completly and it still does it. Yes, i did – i read it before you post it. I thing i’ve tried every common advice on this topic. I tried finde empty spaces, i tried unistall plugins, i tried empty functions.php, i tried upload new fresh WP files… nothing helps. Only if i change my template or get rid of functions.php the Warning stops comming.

    Thread Starter jabbo126

    (@jabbo126)

    esmi, thanx, but did you read everything I wrote?? there are NO spaces in my function.php. I even try to empty it completly with nothing in it. Still same issue.

    I already tried to delete all my WP files except my theme and upload new one – it didn’t solve the problem.

    Thread Starter jabbo126

    (@jabbo126)

    Ok, i have solution – in case it help somebody else. You need to reset query before if statement. So it may look like this:

    <div id="recept">
                <h2 class="recepty">Recepies</h2>
                <?php wp_reset_query(); ?>
                <?php if ( have_posts() && is_front_page() ) : ?>
    			<?php query_posts('category_name=recepty&showposts=1'); ?>
                <?php while(have_posts()) : the_post(); ?>
                <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
                <a href="#"><img class="recepty-87x85" alt="Pala?inky" src="<?php bloginfo('template_directory'); ?>/images/pancakes.png" /></a>
                <?php the_content ('more info'); ?>
    
                <?php endwhile; ?>
                <?php else : ?>
                	<?php get_sidebar(); ?>
                <?php endif; ?>
            </div>
Viewing 9 replies - 16 through 24 (of 24 total)