Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter jonathas_scott

    (@jonathas_scott)

    :/

    So that was it ! i find out what was doing it all :
    The “InlinePosts Plugin 2.1.2.g – by Aral Balkan”. By some reason that i just can´t figure out it makes no sense at all…

    It refers to an #top anchor on the inlineposts.php file inside the plugin, and it is an <p id=top>, just to navegate to the top of the post.. wow ! no-sense at all to attach an ID to an element that repeats by nature (posts).

    So that´s it,

    …. portion of code attaching the anchor nav ….
    $topLink = '<a href="#top">Top</a>';

    …. portion of code attaching the id ….

    // Add top anchor
    $content = '<p id="top" />'.$content;
    
    // Add the TOC if user requested it
    $content = str_replace("TOC", $tableOfContents, $content);
    
    error_log($tableOfContents);

    Plugin disabled and now no validate problems happening.

    😀
    Thnks all specially moshu for the help and hope it helps improve the plugin as well.

    Thread Starter jonathas_scott

    (@jonathas_scott)

    Humm.. maybe, but what is so strange is that it inserts an “ID” attribute, if it was a “class” I woudn´t mind, but since it is an ID the cone won´t validate.

    With that in mind i dought the wordpress team would come to a function that can create such mess.

    I will try to move on, and see if it continues happens.
    😀

    Any “code” we can check on ?

    Thread Starter jonathas_scott

    (@jonathas_scott)

    I´ve done the new category and post thing, and it stills appears, please check the link: http://www.echoes4ever.com.br/site/

    🙁 no clues ?? my newbie powers are running off…

    Thread Starter jonathas_scott

    (@jonathas_scott)

    Well actually I´m using DW because Im used to it… 😀

    And the <p id=”top” /> is the problem not the <p class=”s”> I inserted “s” class manually writing the post. ;-D

    Updating:

    I re-upload everything, here is my index page:

    <?php
    get_header();
    ?>
    <!-- MAIN AREA CENTRALIZED -->
    <div id="mainarea">
      <!-- MAIN CONTENT -->
      <div id="main-content">
    <?php
    if(is_home()) :
    /* Here comes the HOME trick i check if this is the home
    wordpress has it as default, check the codex)*/
    ?>
    <!-- ========== FEATURED WORK ========== -->
    <?php if(have_posts()) : ?>
    	<?php while(have_posts()) : the_post(); ?>
    		<?php if(in_category('3')) : ?>
    <div id="featured-work">
        <div class="ribbon">
        	<img src="<?php bloginfo('template_directory'); ?>/images/ribbon.png" alt="echoes4ever" width="138" height="138" />
        </div>
        <!-- FEATURED INFO -->
        <div id="featured-info">
            <h2><strong>Featured</strong>Work</h2>
            <h3><?php the_title(); ?></h3>
          	<p class="sss">project date: (<?php the_date(); ?>)
    
            <p class="ss"><?php the_content_rss('', TRUE, '', 20); ?>
    
            <p class="sss"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">+ Details on this project</a>
    
        </div>
        <!-- IMAGE WRAPER -->
        <div class="image-wraper">
        <?php the_excerpt_rss(); ?>
        </div>
    </div>
            <?php endif; ?>
        <?php endwhile; ?>
    <?php endif; ?>
    
    <!-- ========== CONTENT BOX - INTRO ========== -->
    <?php if(have_posts()) : ?>
    	<?php while(have_posts()) : the_post(); ?>
    		<?php if(in_category('4')) : ?>
    <!-- CONTENTBOX -->
    <div id="content-box">
    <h2><?php the_title(); ?></h2>
    <?php the_content(); ?>
    <p class="s">Checkout <a href="#" title="Our Works - Portfolio">OUR WORKS</a> and <a href="#" title="Contact">drop us a line</a> !
    
    </div>
    		<?php endif; ?>
    	<?php endwhile; ?>
    <?php endif; ?>
      </div>
    <!-- ========== SIDEBAR ========== -->
    <?php
    endif;
    // Here ends the HOME trick
    ?>
      <!-- ABOUT ME -->
      <div id="about-me">
    
      </div>
      <!-- END ABOUT ME -->
      <!-- PORTFOLIO -->
      <div id="portfolio-home">
        <h3><span class="tit-chg-color">Casa</span>da<span class="tit-chg-color">Mae</span>Joana</h3>
        <p class="sss"><a href="#" title="See this project" >+ See this project</a>
    
      </div>
      <!-- END PORTFOLIO -->
      <!-- COLLABORATORS -->
      <div id="collaborators">
        <h3>Collaborators</h3>
      </div>
      <!-- END COLLABORATORS -->
    </div>
    <!-- END MAIN AREA CENTRALIZED -->
    <?php
    get_sidebar();
    ?>
    
    <?php
    get_footer();
    ?>

    Still it appears thath weird tag: <p id=”top” />. I will try to create another category and a new post on that new category to see if it happens as well.

    Thread Starter jonathas_scott

    (@jonathas_scott)

    I´ve done a search on “id=top” and #top at my directory theme ate source level and coudn´t find anything.

    Is it possible the problem is somehow with the installation ? i´ve installed from zero, so the wp is brandnew

    thnks.

    Thread Starter jonathas_scott

    (@jonathas_scott)

    dang it !

    I´ve changed all the main files to default theme, rearranged the html so now it gets the header and footer and checks for sidebar..

    Im under windows (wish i was under ubuntu instead) im using dreamweaver, but the code is exactly as I posted here…

    … no clue yet … i will see what else my newbie powers can do.. (hehe)

    IF you want to check the url it is http://www.echoes4ever.com.br/site

    Thread Starter jonathas_scott

    (@jonathas_scott)

    Humm… well Iam working on the yourblog-20-theme directory as base and intended to rename it after.

    But I will try to overwrite the main files with the ones from the classic theme.

    By the way blogger is the actual blog, the wp will be at http://www.echoes4ever.com.br/site

    thnks again moshu 😀

    Yeah ! it took me a while to manage that “non-“sense separation wordpress does between Page (capitalized p) and archives.

    The point is:
    To accomplish what you are willing for, you will have to use categories, and if you intend to create different layouts for each categories i sugest you use some “if statements” that includes portions of your layout depending relying on categories, so with that you can “mount” your layout depending on its category.

    Ps. my first reply to someone elses dought, im new to wordpress, if im missing something here please someone correct me.

    🙂

    Thread Starter jonathas_scott

    (@jonathas_scott)

    Thanks a LOT moshu !!!
    
    But i could only make it happen like this:
    ........
    	<?php if(have_posts()) : ?>
    		<?php while(have_posts()) : the_post(); ?>
                <?php if(in_category('3')) : ?>
                <div id="featured">
                <h2>FEATUREDWORK</h2>
                    <div class="imageElement" id="post-<?php the_ID(); ?>">
                        <div class="lead-image-wrapper">
                            <h2><?php the_title(); ?></h2>
                            <h3><?php the_content(); ?></h3>
    	                    <h4><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">+ Details on this project</a></h4>                        <!-- img from rss trick -->
    						<?php the_excerpt_rss(0); ?>
                        </div>
                    </div>
                 </div>
               <?php endif; ?>
           <?php endwhile; ?>
       <?php endif; ?>

    Any especial reason for it ?

    Thankyou -> Obrigado 😀

Viewing 10 replies - 1 through 10 (of 10 total)