Skip to content

Instantly share code, notes, and snippets.

@yeriepiscesa
Last active March 8, 2020 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yeriepiscesa/3c4159dd3ff6486841a78af90ed8a9f7 to your computer and use it in GitHub Desktop.
Save yeriepiscesa/3c4159dd3ff6486841a78af90ed8a9f7 to your computer and use it in GitHub Desktop.
Related posts on Oxygen Builder's Easy Posts. https://solusipress.com/menampilkan-related-posts-pada-oxygen-builder/
post_type=post&posts_per_page=5&sp_related=yes
%%EPID%% .oxy-posts {
display: flex;
flex-direction: column;
}
%%EPID%% .oxy-post {
display: flex;
flex-direction: column;
text-align: left;
align-items: flex-start;
margin-bottom: 10px;
border-bottom: 1px solid #f4f4f4;
}
%%EPID%% .oxy-post-image {
margin-top: 1em;
margin-bottom: 1em;
width: 100%;
}
%%EPID%% .oxy-post-title {
font-size: 13px;
font-weight:bold;
line-height: 1.2em;
color: #333;
}
%%EPID%% .oxy-post-content {
margin-top: 1em;
margin-bottom: 1em;
}
%%EPID%% .oxy-post-content p {
margin: 0;
}
%%EPID%% .ct-new-columns {
padding-top: 0px;
}
%%EPID%% .ct-new-columns .post-thumbnail.ct-div-block {
width: 25%;
padding:0px;
}
%%EPID%% .ct-new-columns .oxy-post-content.ct-div-block {
width: 75%;
padding:0px 15px;
}
%%EPID%% .oxy-easy-posts-pages { display:none; }
<div class='oxy-post'>
<div class="ct-new-columns">
<div class="post-thumbnail ct-div-block">
<?php
if (has_post_thumbnail()) {
?>
<a href='<?php the_permalink(); ?>'><img src='<?php the_post_thumbnail_url(); ?>' class='oxy-post-image' /></a>
<?php
}
?>
</div>
<div class="oxy-post-content ct-div-block">
<a class='oxy-post-title' href='<?php the_permalink(); ?>'><?php the_title(); ?></a>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment