• Resolved max139dark

    (@max139dark)


    My problem is i’m not that good with codes and i have no idea what do to 2 make a page like this to show each post only by title witch the user clicks on to see the full post itself i have no idea what 2 do but from looking around in google i found that i need to replace something at archive.php
    witch i tried but it didn’t work at all those posts i found must’ve been to old or my theme witch i made in a program called art steer is more complicated can anyone please tell me what i need to do to make it show post title instead of showing the full post here is my archive.php (will open a google notebook)

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,

    Open sidebar.php file. Check the code for the category widget and find this code:

    <? php the_content(); ?>

    Replace with:

    <?php the_excerpt(); ?>

    Thanks,

    Shane G.

    Thread Starter max139dark

    (@max139dark)

    i don’t have sidebar.php i have those:
    Templates

    * 404 Template (404.php)
    * Archives (archive.php)
    * Comments (comments.php)
    * Footer (footer.php)
    * Header (header.php)
    * Main Index Template (index.php)
    * Page Template (page.php)
    * Search Form (searchform.php)
    * Search Results (search.php)
    * Single Post (single.php)
    * Theme Functions (functions.php)
    * archives.php (archives.php)
    * legacy.comments.php (legacy.comments.php)
    * links.php (links.php)
    * sidebar1.php (sidebar1.php)
    * sidebar2.php (sidebar2.php)

    Styles

    * Stylesheet (style.css)
    * style.ie6.css (style.ie6.css)

    Both
    * sidebar1.php (sidebar1.php)
    * sidebar2.php (sidebar2.php)
    don’t have this part: <? php the_content(); ?>

    added sidebar1.php and sidebar2.php codes in here
    https://www.google.com/notebook/public/13487541222232777494/BDVAm3goQ-Pu-lq0k

    Thread Starter max139dark

    (@max139dark)

    by the way thanks for helping

    delete the following in your archive.php (make a backup copy first, in case something goes wrong):

    <div class="PostContent">
    <?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', 'kubrick')); ?>
    
    </div>

    then you are left with the clickable post title and other info, for instance such as tags, date, author …

    Thread Starter max139dark

    (@max139dark)

    it worked thank you but can you please tell me how to remove the rest of the stuff all the tags date author leaving just the title with the link to the episode? thank you very much for your help
    this is how it looks like now : https://fun-world.66ghz.com/?cat=15

    backup first.
    remove:

    <?php if (trim($metadataContent) != ''): ?>
    <div class="PostMetadataHeader">
    <?php echo $metadataContent; ?>
    
    </div>
    <?php endif; ?>

    and further down, remove:

    <?php if (trim($metadataContent) != ''): ?>
    <div class="PostMetadataFooter">
    <?php echo $metadataContent; ?>
    
    </div>
    <?php endif; ?>

    that should do it.
    there are a lot of conditional things in the code, so it’s difficult to tell, if removing these lines will not have an effect on other places.
    keep the backup copy safe – just in case ??

    Thread Starter max139dark

    (@max139dark)

    seems to work perfectly =) thanks a lot for your help your awesome
    https://fun-world.66ghz.com/?cat=15

    How do you create a blog by “Title Only” using WordPress Twenty Ten Theme? When my BLOG comes up, it currently shows the title along with the blog. I only want the title to show, so you would need to click on the title and it would take you to another page to read that blog. Please help! Thank you! My site is: https://www.toddydwrestling.com

    I have the same question as ToddyWrestling

    thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to show Categorys posts by title only and not full post’ is closed to new replies.