Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using the similar posts plugin http://wordpress.org/extend/plugins/similar-posts/, and I want the similar posts to show on the same line instead of as a list...

like link 1, link 2, link 3, link 4

instead of
link 1
link 2
link 3
link 4

I posted this on the wordpress forum and on the plugin's official site days ago and still no answer... please help me!

(I know very little about coding, so try to be specific, and if you give me code explain what each line does so I can learn please)

thanks!

Added info: I'm using mostly default settings for the plugin, I think the only change I made was to set it to only consider tags. I would think there would be something I could change on the output settings tab, but I have no idea what. I've got it set to display after the content because I couldn't figure out what file to put <?php similar_posts(); ?> and that's really where I wanted it anyways so it worked out perfectly. Oh, I am using the default theme Twenty Ten.

Follow the link to wordpress forums in my chosen answer below for the missing parts of the discussion.

share|improve this question
    
I think you should add some more information to your question and check the formatting. And please link the plugin so it's clear which one you use. From what I see with the one on google place 1, there are many ways to customize this, so if you write about your configuration of the plugin, this might be much easier to answer and probably won't need any code-changes. So easier for you to understand and configure in the end as well. –  hakre Nov 18 '10 at 13:20
    
I'm not sure how I missed that my post was displaying the list wrong.... thanks! –  krazykat1980 Nov 18 '10 at 20:57

2 Answers 2

up vote 0 down vote accepted

I've responded to your thread on the WP forums, see here.. http://wordpress.org/support/topic/simple-question-about-similar-posts-plugin

You can do what you want from the plugin's settings page..

EDIT: Following the CSS suggestion, if you wanted to try this method.

  1. Leave the fields as they were
  2. Update the <ul> field to now read <ul id="my_special_id">
  3. Update your theme's style.css file with the below.

Example CSS.

#my_special_id, 
#my_special_id li { display:inline; }
#my_special_id li a { margin-right: 5px; }

Which should result in the list items displaying side by side. The margin is to push the items away from one another, else they'll look like one long sting..

The {link} text is basically just a placeholder for output produced by the plugin, not much different to how a shortcode works...

share|improve this answer
    
Ahhh, I actually tried that and it just put a comma after each one without changing the way they were listed, although I can't remember if I cleared the other fields in the same attempt or at a different time, so I'll try again.... I tried everything I could think of, but like I said in my question I know next to nothing about coding (except vb) so I while I might understand the <li> and <ul> I don't know {link} and I can only learn so much in a few hours –  krazykat1980 Nov 20 '10 at 10:20
    
ok, I followed your instructions exactly and it does like I said, leaves them in list format and just adds a comma after each one. I thought I had tried everything obvious before I posted, and I guess I was right. I left it like that so you could go see if you want. top-iphone-apps.info/?p=55 could the group title template box on the output settings page help in this case? or maybe somehow it has to do with the language and .po files my server doesn't allow (I doubt it, but maybe?) –  krazykat1980 Nov 20 '10 at 10:45
    
There's now a list element <ul> present but no list items.. Can you provide a screenshot of the 3 fields? So i can compare how the output behaves with what you have in the fields.. –  t31os Nov 20 '10 at 10:52
    
Added an update to my response on the WordPress forum... ;) –  t31os Nov 20 '10 at 15:39
    
Sigh..... why is this so difficult! The css solution isn't working, but it's entirely possible that I'm an idiot and am not adding it to the right place in the css file? –  krazykat1980 Nov 21 '10 at 6:19

chances are you could get it to display that way by altering the css properties for the code that the plugin spits out. particularly display: inline

share|improve this answer
    
I that.... but I don't know how or where... I guess I can go back to the w3schools site and try to figure it out a fifth time. –  krazykat1980 Nov 19 '10 at 5:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.