radutanasescu
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to get WordPress to write the post linkIf anyone else needs it, I’ve found the best way to add a facebook icon is this, the link comes from facebook and I’ve inserted the php code necessary for it to post the exact post link:
<a name="fb_share" style="float:right;" type="button" href="https://www.facebook.com/sharer.php?u=<?php the_permalink() ?>&t=<?php echo urlencode(the_title('','', false)) ?>">Share</a><script src="https://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
Also, this would be a good way to make a twitter button (the bkg image is added through css, you can get a similar one anywhere:
.postmetadata a.btn_tweet { background:url("images/btn_tweet.png") no-repeat scroll 0 0 transparent; display:block; font-size:10px; height:14px; line-height:10px; width:40px; float:right; color:#FFF; padding:4px 0 0 23px; margin-left:15px; font-family:Verdana, Geneva, sans-serif; } <a href="https://twitter.com/?status=<?php echo urlencode(the_title('','', false)) ?>+<?php the_permalink() ?>" title="Trimite articol pe Twitter" rel="nofollow" target="_blank" class="btn_tweet">Tweet</a>
Forum: Fixing WordPress
In reply to: How to get WordPress to write the post linkThanks a lot!
Forum: Fixing WordPress
In reply to: How to get WordPress to write the post linkI know but they add a lot of php and css for nothing, all I need is a php code that spits out the link of my wordpress post (postlink I guess).
Something like this:
<a href="https://www.facebook.com/sharer.php?u=<?php post_link?>" target="_blank" title="Facebook">Facebook</a>
Only that this
<?php post_link?>
is just an example to help explain my question, it doesn’t actually work.I know where to insert this in my template, I just open index.php and put it where I want it to be.
I could use a plugin but it would have to be a plugin that lets me use both facebook and twitter and that would allow me to position it where ever I want.
I have to respect a graphic design for the blog ??
Forum: Fixing WordPress
In reply to: How to get WordPress to write the post linkThe problem with that link is that it doesn’t post the article link that the icon is in ?? that’s what I’m trying to get.
I’ll try the plugin, I wanted to avoid plugins because they generally over complicate things.
Thanks!
Forum: Plugins
In reply to: Plugin for adding a few article titles in the sidebarThat’s what I was thinking, thanks for your assistance.
Forum: Plugins
In reply to: Plugin for adding a few article titles in the sidebarThank you for the clarification.
What I meant was, I’m just the web designer, the blog I’m working on is owned and used by a person with no web design skills, the idea is to make it possible for that person to chose what posts are displayed in the sidebar without my intervention.
The idea is to have a way to promote several posts of grater importance, which will change in time.
I think I might be able to do something with Otto’s php widget, if no other option exists.
Forum: Plugins
In reply to: Plugin for adding a few article titles in the sidebarI’m probably the one confused, what exactly does your code do?
Forum: Plugins
In reply to: Plugin for adding a few article titles in the sidebarI’m sure this works and I won’t have any problem using it, however a normal blog user won’t be able to change the articles in the sidebar by themselves.
Thank you for the suggestion, if I won’t be able to find an plugin I’ll use this.