Community Forums › Forums › Archived Forums › Design Tips and Tricks › Custom Fields?
Tagged: Custom fields
- This topic has 11 replies, 4 voices, and was last updated 12 years ago by
dustin100.
-
AuthorPosts
-
February 8, 2013 at 12:22 pm #18968
dustin100
MemberHey, I'm using the magazine theme. I currently add my source at the bottom of every post, which looks like this "[via-WebsiteLink]". The only problem is when someone shares the link, it is included with the description. I don't want this to happen. What is the best option to fix this, costume fields?
Thanks for the help
February 19, 2013 at 1:37 pm #21408cdils
ParticipantCan you post a link? I'm not clear on what's happening, but I don't think custom fields are the solution.
Cheers,
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
February 28, 2013 at 12:34 pm #23318dustin100
Memberhttp://sometimesthingshappen.com/
When you visit just hit the FB share button, you'll see the "via-SiteLink" show up in the description.
Thanks for the reply!
February 28, 2013 at 1:02 pm #23323cdils
ParticipantOh, okay! Which plugin are you using to generate those share buttons? There should be settings for the plugin that allow you to disable the "via..." part. In other words, it's not an issue with your theme, it's an issue with your social sharing plugin. 🙂
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
February 28, 2013 at 1:44 pm #23336dustin100
MemberSo, I use ShareThis but, I don't think that is the issue. I understand why it shows up in the description, because I put "via-" in the text field of the post. What I'm trying to figure out, is if I can keep the "via" in roughly the same place, without putting it in the text field. Below is a sample of one of my posts. Hopefully this helps clear things up.
<code>
<div class="video-container">
<iframe width="580" height="326" src="http://www.youtube.com/embed/mhlz7y_llb4" frameborder="0" allowfullscreen></iframe>
</div>
<br>
<p>
The Real Genius trailer recut in the style of a M. Night Shyamalan movie.
</p>[via-<a href="http://www.youtube.com/user/dondrapersayswhat?feature=watch" title="dondrapersayswhat">dondrapersayswhat</a>]
</code>
Thanks again for the help
February 28, 2013 at 4:26 pm #23375cdils
ParticipantHeya!
What do you mean by "text field of the post"? The post content area? Sorry I'm slow to understand and not being very helpful. 🙁
Carrie
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
February 28, 2013 at 4:42 pm #23381dustin100
MemberSorry, I'm not explaining this clearly. Here is a screenshot if you can't see it, try this. http://tinypic.com/r/2w3w8q0/6
February 28, 2013 at 4:52 pm #23386cdils
ParticipantOkay, I see what you're saying - thanks for the screen shot. I don't know what the answer is though. Since you're using a ShareThis shortcode to generate the link, I think you'll need to troubleshoot options with that plugin to get the answer. Even if you used a custom field to output the shortcode somewhere else on the page, you'd have the same issue.
Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. 🙂
I host a weekly WordPress-focused podcast called Office Hours. I tweet @cdils.
February 28, 2013 at 5:10 pm #23390dustin100
MemberNot what I wanted to hear but, thanks for looking into it for me. I'll mess around some more and see what I can do. If I happen to find the answer/ fix, i'll post it here.
February 28, 2013 at 7:29 pm #23421ramseyp
MemberIf you're saying you don't want [via-XXXX] to show up when someone shares the post, that bit of text will have to be inserted by some other method. Placing it in the post's content editor makes it part of the content body, so it gets shared along with the rest of the post's content.
A custom field would work, along with editing the theme's functions.php file so it's placed just under your post's content or somewhere else you prefer.
If you're familiar with the More Fields plugin, you could try using that to create the custom field. Getting its output into your blog or single post depends on how familiar you are with Genesis' hooks.
Pat
February 28, 2013 at 8:36 pm #23427Hard Boiled Greg
MemberHi,
Did you get this resolved?
If you want to add the source via a custom field, you can post this to your functions.php file:
// Add custom field for content source after content function hbg_source_cf() { genesis_custom_field('source'); } add_action( 'genesis_after_post_content', 'hbg_source_cf', 8 );
Then on your post edit screen under "Add New Custom Field" enter "source" (without quotes) for the Name and your link code (with via-) for the Value.
I haven't tested it with your sharing plugin to confirm it leaves out the content of this field.
Let me know how this works out for you.
Hard Boiled Greg
Website: Hard Boiled Greg Twitter: @hbgreg
February 28, 2013 at 9:15 pm #23429dustin100
MemberThank you everyone for the help! I'm still leaning custom fields.. @Hard Boiled Greg, this is exactly what I was looking for. It works perfectly.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.