This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: A couple questions

#10387
Brett GoldingBrett Golding
Participant

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…

[code]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;
}[/code]

Unfortunately, it hasn’t done anything.

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

[code] <?php

//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;/div&gt;

&lt;?php endwhile; ?&gt;[/code]

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.