Forum Replies Created
-
AuthorPosts
-
MarylucsMember
Thats where i have it now and its under the comments.. Or is there a way to push the comments down?
MarylucsMemberI dont know where to. If i change it to genesis_entry_footer its inside the box. Is there a way to put the custom field above the comments?
MarylucsMemberThank you very much, it worked! For all the others who might have the same question, here is the code:
add_filter('genesis_after_entry', 'after_entry_filter'); function after_entry_filter() { if ( is_singular('post') ) { echo '<strong>Fotograf:</strong> ' . genesis_get_custom_field('fotograf'); } }
But is there a way to make the output go above the comments but under the Post?
When i put genesis_after_entry it's under the comments and if i put genesis_entry_footer its still in the Posts-box.MarylucsMemberohhhhhh my gosh it works!!!! Thank you so much 🙂 Can't believe its this simple 🙂 Awesome!
MarylucsMemberThats so weird. I put the code at the end of my functions and i deactivated all of the Genesis Plugins and still... nothing changes. Should i post my functions.php here? Maybe there is something "wrong" with it?
<?php //* Start the engine include_once( get_template_directory() . '/lib/init.php' ); add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); function sp_post_meta_filter($post_meta) { if ( !is_page() ) { $post_meta = '[post_categories before="Demo for BoldPlan: "] [post_tags before="Tagged: "]'; return $post_meta; }} //* Child theme (do not remove) define( 'CHILD_THEME_NAME', 'Genesis Sample Theme' ); define( 'CHILD_THEME_URL', 'http://www.studiopress.com/' ); define( 'CHILD_THEME_VERSION', '2.0.1' ); //* Enqueue Lato Google font add_action( 'wp_enqueue_scripts', 'genesis_sample_google_fonts' ); function genesis_sample_google_fonts() { wp_enqueue_style( 'google-font-lato', '//fonts.googleapis.com/css?family=Lato:300,700', array(), CHILD_THEME_VERSION ); } //* Add HTML5 markup structure add_theme_support( 'html5' ); //* Add viewport meta tag for mobile browsers add_theme_support( 'genesis-responsive-viewport' ); //* Add support for custom background add_theme_support( 'custom-background' ); //* Add support for 3-column footer widgets add_theme_support( 'genesis-footer-widgets', 3 ); //* Neue Thumbnail Groessen add_image_size( 'sidebar-thumbnail', 100, 100, true ); add_image_size( 'post-thumbnail', 120, 120, true ); add_image_size( 'feat-post', 270, 150, true ); add_image_size( 'sidebar-thumb', 300, 240, true ); add_image_size( 'nav-neue', 90, 90, true ); add_image_size( 'neues-thumbnail', 160, 160, true ); add_image_size( 'feat-thumbnail', 280, 80, true ); // Child theme setup function function child_theme_setup() { // Remove the primary navigation from its current location remove_action( 'genesis_after_header', 'genesis_do_nav' ); // Add the primary navigation to the top of the page add_action( 'genesis_before_header', 'genesis_do_nav' ); } // Hook into genesis_setup add_action( 'genesis_setup', 'child_theme_setup' ); //* Customize search form input box text add_filter( 'genesis_search_text', 'sp_search_text' ); function sp_search_text( $text ) { return esc_attr( 'Suche' ); } //* Customize the next page link add_filter ( 'genesis_next_link_text' , 'sp_next_page_link' ); function sp_next_page_link ( $text ) { return '<img src="http://www.modernwall.de/wp-content/uploads/2014/06/olderartikel.jpg">'; } //* Customize the previous page link add_filter ( 'genesis_prev_link_text' , 'sp_previous_page_link' ); function sp_previous_page_link ( $text ) { return '<img src="http://www.modernwall.de/wp-content/uploads/2014/06/newerartikel.jpg">'; } //* Setze den Titel neben das Thumbnail remove_action( 'genesis_entry_content', 'genesis_do_post_image', 8 ); add_action( 'genesis_entry_header', 'genesis_do_post_image', 3 ); /** Customize Read More Text */ add_filter( 'excerpt_more', 'child_read_more_link' ); add_filter( 'get_the_content_more_link', 'child_read_more_link' ); add_filter( 'the_content_more_link', 'child_read_more_link' ); function child_read_more_link() { return '<a href="' . get_permalink() . '" rel="nofollow"><h1>Weiterlesen</h1></a>'; } // neues Widget genesis_register_sidebar( array( 'id' => 'top-newsletter', 'name' => __( 'Newsletter Top', 'themename' ), 'description' => __( 'Newsletter below navigation', 'themename' ), ) ); add_filter( 'genesis_after_header', 'add_newsletter_top' ); function add_newsletter_top() { genesis_widget_area( 'top-newsletter', array( 'before' => '<div id="top-newsletter"><div class="wrap">', 'after' => '</div></div>', ) ); } //* Im Post nächster/vorheriger Artikellink add_action('genesis_entry_footer', 'wpsites_pagination_links', 15 ); function wpsites_pagination_links() { if( !is_single() ) return; previous_post_link('<span class="single-post-nav previous-post-link">%link</span>', '<< Vorheriger Artikel in der Kategorie', TRUE); next_post_link('<span class="single-post-nav next-post-link">%link</span>', 'Naechster Artikel in der Kategorie >>', TRUE); } //* Customize the post meta function add_filter('genesis_post_meta', 'post_meta_filter'); function post_meta_filter($post_meta) { if (!is_page()) { $post_meta = '[post_categories before="Kategorie: "] [post_tags before="Stichwörter: "]'; return $post_meta; }}
MarylucsMemberThank you for your help but like emasai already said. It doesn't work. I tried every code i could find but nothing seems to work. So frustrating.
I hope she got a good answer 🙂
-
AuthorPosts