I tried changing get_template_part to include and require_once, but none of these methods worked.
Any ideas of how I can do this?
]]>wp_get_attachment_image
and the echo
statement.
echo '<a class="image" href="' . get_permalink() . '">' . wp_get_attachment_image( $attachment_id, $original_atts['image_size'] ) . '</a>';
The line is constructed, with the permalink, it is just the image part that is omitted. Thanks.
]]>here is a summary of exactly what i did.
1. downloaded the partials folder from github & placed in my child themes main directory.
2. added the code at the bottom of the guide to my functions.php in my child theme.
3. created dps-large.php from the guides code & placed it in the partials folder
4. used this shortcode [display-posts include_excerpt=”false” image_size=”thumbnail” layout=”large”]
What am i doing wrong? do i have to edit any of the files in the partials folder i got from github?
]]>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?
]]>thanks
]]>