• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Custom Fields?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Custom Fields?

This topic is: resolved

Tagged: Custom fields

  • This topic has 11 replies, 4 voices, and was last updated 12 years, 10 months ago by dustin100.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • February 8, 2013 at 12:22 pm #18968
    dustin100
    Member

    Hey, 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 #21408
    cdils
    Participant

    Can 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 #23318
    dustin100
    Member

    http://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 #23323
    cdils
    Participant

    Oh, 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 #23336
    dustin100
    Member

    So, 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 #23375
    cdils
    Participant

    Heya!

    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 #23381
    dustin100
    Member

    Sorry, 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 #23386
    cdils
    Participant

    Okay, 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 #23390
    dustin100
    Member

    Not 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 #23421
    ramseyp
    Member

    @dustin100 -

    If 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


    Community • Work • Conversations

    February 28, 2013 at 8:36 pm #23427
    Hard Boiled Greg
    Member

    Hi,

    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 #23429
    dustin100
    Member

    Thank 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.

  • Author
    Posts
Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble