Reply To: A couple questions

Brett Golding
Brett Golding

Thanks Ernest,

My external stylesheet seems to be overriding everything ok.

With regards to my second point. I have studied the post you referred me to and tried testing by adding the following to my functions file…

add_filter('asp_results', 'asp_social_shortcode', 1, 1); 
function asp_social_shortcode( $results ) {
  foreach ($results as $k => $r) {
    $r->content .= "<p>Hello World!</p>";
  return $results;

Unfortunately, it hasn’t done anything.

I am outputting these custom fields with a loop as seen below.


                //Define your custom post type name in the arguments
                $args = array('post_type' => 'sponsored_anglers');

                //Define the loop based on arguments
                $loop = new WP_Query($args);

                //Display the contents
                while ($loop->have_posts()) : $loop->the_post();
                    $src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), array(5600, 1000), false, ''); ?>

                            <div class="social-icons">
                                <a target="_blank">"&gt;</a>
                                <a target="_blank">"&gt;</a>
                                <a target="_blank">"&gt;</a>
                                <a target="_blank">"&gt;</a>
                &lt;?php endwhile; ?&gt;

Do you have any idea how to include these fields? They need to be present all of the time. I am preloading results as you can see from my site.