• hello
    I’ve changed the_ content() by the_excerpt() to put resumes in my front page, but all I have is text.

    I want to display Images next to the resume, How can I do it
    thx .

Viewing 9 replies - 1 through 9 (of 9 total)
  • As you’ve noticed, by default the_excerpt trims images (and some other stuff). I believe that’s mentioned on the documentation page linked.

    You could do some copy/paste from your Post editor field to the Excerpt field on the edit page. I believe that WILL use whatever is provided. But it’s an extra step.

    You might check out the plugin the_excerpt Reloaded instead. It allows you to configure quite a bit, including keeping pictures and modifying default length.

    Thread Starter alyas2022

    (@alyas2022)

    the plugin was really helpful…
    Thx man for your time

    Thread Starter alyas2022

    (@alyas2022)

    I’ve been using the plugin above, and its realy helpful for the index page..

    Now, when I enter in the archive, or when I choose a categorie to display it’s posts, I get only the excerpt…

    I tried to look for the lines :
    the_excerpt(__('<strong>(more...)</strong>')); ?>
    in many tamplate pages

    to change them to :

    <?php the_excerpt_reloaded(85, '<a><img>', 'filter_type',
    true, 'Lire la suite', true, 2); ?>

    as I did in “the Main index template”, but can’t find them…

    any suggestions plz ?

    It would be helpful to know what files your current theme provides.

    Thread Starter alyas2022

    (@alyas2022)

    Mangaaz is my site…
    I’m using “The Beauty WithinMU theme 1.0.5 by Beng Hafner” with some modifications

    the files that the theme provides are :

    * Stylesheet
    * style_ie.css
    * 404 Template
    * Author/About
    * Archives
    * Archives (yes there is 2 archive templates)
    * Comments
    * Footer
    * functions.php
    * Header
    * Links
    * Page Template
    * Search Results
    * searchform.php
    * Single Post
    * topsform.php
    * Main Index Template
    * Sidebar

    Im also using the version 2.2.2 of WP

    One of those “Archives” is likely named archive.php. That’s one that you’ll want to adjust.

    The one that is archives.php (with an s) you’ll leave alone for now.

    Thread Starter alyas2022

    (@alyas2022)

    yop, I changed it, and it worked, you were right, one of the 2 archives chould be without an “S” !
    thx

    I’m sorry, I feel like an idiot here. But I’ve got to get this resolved.

    Nope PHP is not my forte (gross understatement). And most of what was said above went right over my head. I’m learning, but slowly I’m afraid.

    I too have the same situation with image only showing on the main page – not on the category page.

    Up to today they worked correctly – today I had to rebuild three of the clients posts and add a new category; that’s when every thing broke.

    The url: https://www.ezymount.com/ride
    Category: On the Road Pictures (this is what started the whole mess)
    Theme used: Small potato

    Showing only one archive.php (though in the sidebar in editor it says archives.php

    I have my handy-dandy Word Press 2 book here, but so far it hasn’t helped.

    If someone out that could please help – in nice simple terms for those of us still trying to get a grasp on PHP, I would be very, very grateful.

    I have 4 clients now using WordPress in conjunction with the sites I built for them – so I really have to understand this.

    Thank you very very much in advance for any and all help.

    Ann

    Never mind – thanks anyway. I had a programmer friend dive in and find the problem.

    Client is happy.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘no images in the exerpt in front page’ is closed to new replies.