• Resolved hebhansen



    I added the plugin and it sort of works. but:
    – When adding shortcode and calling the image I want it is showed in oversize bad resolution rather than the true image size 400×250
    – CSS flush left and top using the div container does not work either

    What am I doing wrong?

    Next step:
    I would like to redesign my archive page entirely. Should I do this from admin > Pages > add new
    I did this using another plugin and I had no succes in pointing to that new archive page, so I’m a bit puzzled.

    Now I came across this post on template and theme where you link to partials for the purpose.

    Your archive.php in article and partials are not the same, and is this the file defing the layout of archive page?

    In the above post you have a featured-archive.php example but no description/example on what it is/does. So what and how to?

    I get the large and small part from your examples and I need that to work, but I can’t seem to get started here….

    The last part that goes into code snippet or core function, is that another plugin I need and why?

Viewing 16 replies (of 16 total)
  • hebhansen


    Title before image…

    Adding your code to snippets does move title before image, but it removed the heading tag and txt is normal?

     * Display Posts Shortcode - Move image after title
     * @see https://displayposts.com/2019/01/04/move-the-image-after-the-title/
    function be_dps_move_image_after_title( $output, $original_atts, $image, $title, $date, $excerpt, $inner_wrapper, $content, $class, $author, $category_display_text ) {
      $output = '<' . $inner_wrapper . ' class="' . implode( ' ', $class ) . '">' . $title . $image . $date . $author . $category_display_text . $excerpt . $content . '</' . $inner_wrapper . '>';
      return $output;
    add_filter( 'display_posts_shortcode_output', 'be_dps_move_image_after_title', 10, 11 );
Viewing 16 replies (of 16 total)
  • The topic ‘Getting started’ is closed to new replies.