Can anyone help me with replace genesis post excerpt with yoast meta description and if there is no meta description show the excerpt?

Remove: add_filter( ‘get_the_excerpt’, ‘replace_post_excerpt_filter’ ); function replace_post_excerpt_filter($output) { return $output; } from your code, and you should find it works. The trouble with nested functions, as you have here, is that once the parent function is called the first time, it defines the inner function, but when the parent function is called the second time … Read more

I’m new in developing responsive WordPress Theme, so which framework to use or work from scratch? [closed]

The answer to which framework you should use is — no one knows. From code perspective there is certain degree of baseline theme functionality/experience — enforced by formal standards. Those things are recommended/required for inclusion into official theme directory, outside of that people can do things a little more lax. Frameworks exist for different reasons. … Read more

Adding a new layout for genesis

I have attempted answering my own question with the following code: // Added to layout.php in /genesis/lib/structure.php add_action(‘genesis_before’, ‘modalwindow_layout_logic’); function modalwindow_layout_logic() { $site_layout = genesis_site_layout(); if ( $site_layout == ‘modalwindow’ ) { // Remove default genesis sidebars remove_action( ‘genesis_after_content’, ‘genesis_get_sidebar’ ); remove_action( ‘genesis_after_content_sidebar_wrap’, ‘genesis_get_sidebar_alt’); remove_action( ‘genesis_footer’, ‘genesis_do_footer’ ); remove_action( ‘genesis_header’, ‘genesis_do_header’ ); // Remove layout … Read more

Custom Post Type Pagination For Genesis Child Theme [closed]

EDIT Try this code: remove_action( ‘genesis_loop’, ‘genesis_do_loop’ ); add_action( ‘genesis_loop’, ‘sk_do_loop’ ); function sk_do_loop(){ global $wp_query; $temp_query = $wp_query; // Fix for the WordPress 3.0 “paged” bug. $paged = 1; if ( get_query_var( ‘paged’ ) ) { $paged = get_query_var( ‘paged’ ); } if ( get_query_var( ‘page’ ) ) { $paged = get_query_var( ‘page’ ); … Read more

Genesis Style Selector causes PHP warning [closed]

This should remove the warning $selector = get_theme_support( ‘genesis-style-selector’ ); $wp_customize->add_control( ‘genesis_color_scheme’, array( ‘label’ => __( ‘Select Color Style’, ‘genesis’), ‘section’ => ‘genesis_color_scheme’, ‘settings’ => $this->get_field_name( ‘style_selection’ ), ‘type’ => ‘select’, ‘choices’ => array_merge( array( ” => __( ‘Default’, ‘genesis’ ) ), array_shift( $selector ) ), ) );

Inserting a shortcode into a genesis menu?

The problem is the fact that you are trying to echo something into a string, echo should only be used to output something, so simply change the following line: $items .= ‘<li class=”myclass”>’ . echo do_shortcode(‘[shopping_cart]’) . ‘</li>’; To this: $items .= ‘<li class=”myclass”>’ . do_shortcode(‘[shopping_cart]’) . ‘</li>’; Edit: On another note, this is merely … Read more

How to add a widget area between blog posts in Genesis Framework?

This thread – http://wordpress.org/support/topic/how-to-put-adsense-after-first-topic – explains how to add something after the first post so I would assume you could change the 1 to a 3 to have it display after the third? And this page explains how to add a widgetized area: http://quirm.net/2011/09/15/widgetizing-any-page/ So you would put the php for the dynamic sidebar where … Read more