Different read-more link for each custom post type [closed]

No idea if this makes a difference, and don’t know about the Genesis either but give it a shot function excerpt_read_more_link($output) { global $post; if ( ‘speaker’ == get_post_type() ) { $output .= ‘<p><a class=”speaker-more-link” href=”‘. get_permalink() . ‘”>View Speaker Profile</a></p>’; } elseif ( ‘resources’ == get_post_type() ) { $output .= ‘<p><a class=”speaker-more-link” href=”‘. get_permalink() …

Read more

404 Pagination issue for only one category

Completely mess, but this solved my issue <?php function be_custom_loop() { $category = get_category(get_query_var(‘cat’)); $cat_id = $category->cat_ID; $cat_name = $category->name; echo ‘<div class=”home_title”>’ . $cat_name . ‘</div>’; $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘cat’ => $cat_id, ‘paged’ => $paged ); query_posts($args); // The Loop while (have_posts()) : the_post(); $post_thumb = str_replace(home_url(), …

Read more

Clone a Post Tite and Custom Field into Custom Post type

Something like this should work- if( get_post_meta( $post_id, ‘_surl_post_id’, true ) ) { // we have an old post created here update_post_meta( get_post_meta( $post_id, ‘_surl_post_id’, true ), ‘_surl_redirect’, get_post_meta( $post_id, ‘url’, true ) ); return; } // Prepare contents $add_cpt_clone = array( ‘post_title’ => $post_object->post_title, ‘post_status’ => ‘publish’, ‘post_type’ => ‘surl’ ); // Insert the …

Read more

Genesis themes: how do alter the markup of post meta on archive pages? [closed]

Within your Executive Pro theme’s functions.php, you can add a function that filters the post info. In Genesis lib/functions/post.php, you’ll find a genesis_post_info() function, and one particular line in it is: $filtered = apply_filters( ‘genesis_post_info’, ‘[post_date] ‘ . __( ‘by’, ‘genesis’ ) . ‘ [post_author_posts_link] [post_comments] [post_edit]’ ); That means you can filter genesis_post_info, and …

Read more