• 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

tristanjud

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
  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • February 25, 2016 at 1:22 am in reply to: Digital Pro custom post format #179863
    tristanjud
    Member

    Any one able to help?

    August 25, 2013 at 7:27 am in reply to: Custom Feature Image Function #58723
    tristanjud
    Member

    For those interested this is where i've got to. It displays the "featured image" or the "oEmbed" video on the single post page.

    I haven't been able to get it to work with the front page widgets such as "genesis feature post" widget etc... just yet.

    add_action( 'genesis_before_post_content', 'feature_image_video'  ); 
    function feature_image_video() {
    	if (get_post_meta(get_the_ID(), 'video_link', true) != '') {
    		$feature_video_link = get_post_meta( get_the_ID(), 'video_link', true );
    		$embed_code = wp_oembed_get( $feature_video_link, array('width'=>676) ); 
    		echo $embed_code;
    	} else {
    		the_post_thumbnail( 'custom_feature_size' );
    	}
    }
    August 25, 2013 at 5:59 am in reply to: Custom Feature Image Function #58702
    tristanjud
    Member

    Anitac, pretty cool but not quite what i'm after.

    Since I already have 100's of posts that have used the custom form input in my previous theme, i'm looking for away to customise the feature image output function so that i can check to see if this other field is valid or not.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 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