Hello,
That’s just how it was coded, to grab the first tag and then look for posts with this tag. As for the images, you can make them square with CSS:
.expand_divi_related_post img {
height: 145px;
}
Add that in theme options => Custom CSS field. The images will always look good even with with CSS.
So that is very limiting because it is looking at the first tag alphabetically and sometimes I only have one post attached to that tag. So it appears sometimes there are no related posts when there are many. For example, I write a lot about “ukuleles” but it will never pick up ukulele b/c it comes later in the list. Instead it looks at something like “about” and then doesn’t pick up anything related.
Is there a way to code it to at least look at the next tag if nothing matches or less than three matches?
Oh yes, I can see the problem in that logic.. I’m going to update the plugin with a fix, you can fix it by editing the wp-content\plugins\expand-divi\inc\features\ExpandDiviRelatedPosts.php file and replacing all its content with this:
https://gist.githubusercontent.com/FaycalBoutam/749b5a9c4d6f2f6592eb2e2ab02dc1a0/raw/e80812ee827774fe599395d93a17c87d66fdc639/gistfile1.txt
Now it’s going to show posts if they share at least one tag.
-
This reply was modified 6 years, 9 months ago by
faycalboutam.
Loving this plugin! Have you thought about adding categories as part of the Related logic? You could use categories and then tags. That would give more related posts.
I installed the above code for the tags and it works great!
The related posts seem to need a blank line after them so that the submit comment looks correct.
http://testsite.innerprosperity.com/wp/whats-the-rush/
Also, when only 1 or 2 related posts are found, the submit comment bumps up and should be on it’s own line..
http://testsite.innerprosperity.com/wp/want-to-lose-emotional-weight-do-this/
-
This reply was modified 6 years, 9 months ago by
limitlessly.
-
This reply was modified 6 years, 9 months ago by
limitlessly.