25
Apr
2009
Need Help With Your Wordpress ?
By admin. Posted in Quest, Wordpress
27 Comments » | Share |
Anybody out there having problem with your wordpress. For eg: problems like setting up your blog, plugin install, theme install, anything related to coding section, etc can ping me if you want any help from me.
Add your question as comment below and i will try my level best to find a solution to your problems.
If you are interested in custom build plugin for your wordpress, Place your requirement below in the comment section.






April 26th, 2009 at 10:14 am
Hi,
I have an question about adding some code:
I would like to have a box at my site that randomly shows one or more old posts. Kinda like feature content plugin, but not as fancy (no javascript or caroussel or anything) just a thumbnail (from a custom field in the post) and some text from the post.
Hope you understand what i mean and that you can help me getting such a box
Cheers,
Martin
April 26th, 2009 at 11:37 am
you did not mention the position to show this box, i m assuming it to be in sidebar, for that you need to edit your sidebar.php of your theme.
open this .txt file and there is a solution to your problem..
i have added here a text file cos the code in it is executing here in this post and so you won’t see the code, but its result in fact…
http://iredlof.com/download/18/
April 26th, 2009 at 11:53 am
Thanks alot for helping!
I get a
Parse error: syntax error, unexpected ‘?’ in /home/www/pimpdaddy.dk/wp-content/themes/statement/sidebar.php on line 78
when i paste the code into the sidebar.php. I want the box to appear right below the first box in the sidebar on my site. You know just below the tab-box.
Line 78 is this :
a href=”">< ?php echo strip_tags(get_the_excerpt(),’‘); ?></p (some tags removed here so maybe it will show in the comment)
April 26th, 2009 at 11:56 am
Download that file again, There was some error in the content of that .txt file, i have updated tht.
sorry for inconvenience.
April 26th, 2009 at 12:10 pm
Done.
April 26th, 2009 at 3:19 pm
Nice! Now the box is working. Is there then anyway to intergete thumbnails into the box?
If the post has a custon field called THUMBNAIL or something like that.
April 26th, 2009 at 8:57 pm
This arbitrary extra information which you want is known as meta-data.
To fetch meta values use the get_post_meta() function:
get_post_meta($post_id, $key, $single);
– $post_id is the ID of the post you want the meta values for. Use $post->ID to get a post’s ID.
– $key is a string containing the name of the meta value you want.
– $single can either be true or false. If set to true then the function will return a single result, as a string. If false, or not set, then the function returns an array of the custom fields.
To output the resulting meta value (notice the addition of “echo”) use the following code there in your sidebar box and set it according using css:
< ?php $key="mykey"; echo get_post_meta($post->ID, $key, true); ?>
April 28th, 2009 at 8:39 am
Iredlof: is it ok to send you an mail? I have a script regarding the whole ‘random articles with thumbnail’ issue i would like you to see and help me with.
Cheers,
Martin
April 28th, 2009 at 10:21 am
Ya sure, send it to me
April 28th, 2009 at 3:26 pm
Thanks mate. I have send it.
April 28th, 2009 at 4:54 pm
Martin, I got your code, i will check it out and try to fix it.. bt plz gimme some time cos study time has come as i have my exam on 3rd.
i m sorry, bt i promise ill fix it for u after 3rd may..
April 29th, 2009 at 7:10 am
Thanks alot. I really appriciate it. And no hurrys at all. Good luck on the exam though.
Cheers,
Martin
April 30th, 2009 at 3:49 pm
Martin, the code you sent me is ready with random post query and also showing featured image attached in custom field.
custom tag should be :
i m sorry as this is just a raw code and not a plugin which i thought of making it for you as i don;t have time now days cos of my exams.
i m mailing you that code, if you find any bug or problem in using it, just let me know…
April 30th, 2009 at 4:17 pm
Hey Rohit.
Seems to work great – THANKS! . I just have one question:
How do i get a line between each random post like:
HEADLINE 1
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
——————————————
HEADLINE 2
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
——————————————
HEADLINE 3
bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla
I tried to put tag after ….?>” alt=”" />
but that didnt work.
April 30th, 2009 at 4:20 pm
…I tried to put tag after ….?>” alt=”” />
April 30th, 2009 at 4:39 pm
Uhh and how to make the thumbnail link to the article as well as the headline?
April 30th, 2009 at 4:46 pm
And btw: The line i was talking about should be beneath the thumbnail. You can see a picture here:
http://www.billedeupload.dk/photo/2009-04/adce3fb9/line.jpg.html
Cheers
April 30th, 2009 at 11:31 pm
martin, i have sent an update of code on your email, try that…
May 1st, 2009 at 2:32 am
Rohit i tried it, but the line does not come under the thumbnail, but under the text:
http://imageload.dk/browse/file/e9f0927d0b0b5eb2325bd7acde6482a0/
So the line goes through the thumbnail. It would be cool if the line could be beneath the thumbnail. And could the line be like the rest of the lines on the page? I have no idea what tag is used for creating lines
Im such an idiot at html
May 1st, 2009 at 8:37 am
Martin, the solution to your random post is here,
download this file, this is a plugin which is fully customizable sidebar widget.
Hope this wil fullfill your need…
Download : http://iredlof.com/download/18/
May 2nd, 2009 at 6:55 am
Nice one rohit. Super cool widget. Thanks alot mate. Using it now at the frontpage: http://www.pimpdaddy.dk
Thanks man. YOU ROCK!!!
May 2nd, 2009 at 7:07 am
Ahh just found an error in the plugin: You have made the thumbnail clickable, but it links to a wrong article every time
Is it fixable?
May 2nd, 2009 at 7:40 am
Ooops.. my mistake…
replace the_permalink(); with echo(get_permalink($rpost->ID)); in iRedlof_random_post_widget.php
May 2nd, 2009 at 5:06 pm
Thanks man! Now its working greeeaattt!!!
You truly are the man!
May 3rd, 2009 at 5:47 am
Hey, I found your blog while gathering info about this. I must admit this is quite new to me, so your blog is really useful. Can you explain me how can I subscribe to your rss?Like for emo dorks like me
I’ll be grateful
May 3rd, 2009 at 8:13 am
Hey, I found your blog while gathering info about this. I must admit this is quite new to me, so your blog is really useful. Can you explain me how can I subscribe to your rss?Like for emo dorks like me
I’ll be grateful
May 4th, 2009 at 6:33 am
Thanxs for showing your interest,
you can try subscribing to email feature right side on of his page..
cos there is some issues with post rss feature… will fix it soon..