Hi there,
I’m trying to add 3 seperate links (one per widget) in this section of my code. Currently all 3 go to the same URL. Any attempt to alter this has resulted in broken code. If anyone has any idea regarding what area of this code I need to target to accomplish this I would greatly appreciate the help. (Note: this is my first ever Wordpress Hack and I have very little experience working with PHP, but confident in HTML) Thanks for reading.
[php] <?php
if ( ‘on’ == et_get_option( ‘nimble_display_services’, ‘on’ ) ){
$blurbs_number = apply_filters( ‘et_blurbs_number’, 3 );
echo ‘
’;
for ( $i = 1; $i <= $blurbs_number; $i++ ){
$service_query = new WP_Query( apply_filters( ‘et_service_query_args’, ‘page_id=’ . get_pageId( html_entity_decode( et_get_option( ‘nimble_home_page_’ . $i ) ) ), $i ) );
while ( $service_query->have_posts() ) : $service_query->the_post();
global $more;
$more = 0;
$page_title = ( $blurb_custom_title = get_post_meta( get_the_ID(), ‘Blurbtitle’, true ) ) && ‘’ != $blurb_custom_title ? $blurb_custom_title : apply_filters( ‘the_title’, get_the_title() );
$page_permalink = ( $blurb_custom_permalink = get_post_meta( get_the_ID(), ‘Blurblink’, true ) ) && ‘’ != $blurb_custom_permalink ? $blurb_custom_permalink : get_permalink();
for ( $i = 1; $i <= $blurbs_number; $i++ ){
$service_query = new WP_Query( apply_filters( ‘et_service_query_args’, ‘page_id=’ . get_pageId( html_entity_decode( et_get_option( ‘nimble_home_page_’ . $i ) ) ), $i ) );
while ( $service_query->have_posts() ) : $service_query->the_post();
global $more;
$more = 0;
$page_title = ( $blurb_custom_title = get_post_meta( get_the_ID(), ‘Blurbtitle’, true ) ) && ‘’ != $blurb_custom_title ? $blurb_custom_title : apply_filters( ‘the_title’, get_the_title() );
$page_permalink = ( $blurb_custom_permalink = get_post_meta( get_the_ID(), ‘Blurblink’, true ) ) && ‘’ != $blurb_custom_permalink ? $blurb_custom_permalink : get_permalink();
echo '<div class="service' . ( 1 == $i ? ' first' : '' ) . ( $blurbs_number == $i ? ' last' : '' ) . '">';
if ( ( $page_icon = get_post_meta( get_the_ID(), 'Icon', true ) ) && '' != $page_icon )
printf( '<img src="%1$s" alt="%2$s" class="et_page_icon" />', esc_url( $page_icon ), esc_attr( $page_title ) );
echo '<h3>' . $page_title . '</h3>';
if ( has_excerpt() ) the_excerpt();
else the_content( '' );
// echo '<a href="' . esc_url( $page_permalink ) . '" class="learn-more">' . __( 'Learn More', 'Nimble' ) . '</a>';
echo '<a href="http://google.com" class="learn-more">' . __( 'Learn More', 'Nimble' ) . '</a>';
echo '</div> <!-- end .service -->';
endwhile;
wp_reset_postdata();
}
echo '</div> <!-- end #services -->';
}
?>[/php]