Forum Replies Created
-
AuthorPosts
-
Brett Golding
ParticipantErnest thank you so much for your help.
Brett Golding
ParticipantYour awesome mate, thank you so much.
I don’t suppose you know how to disable the links to the actual Angler pages do you? I am only looking to have the social icons clickable.
Also in the search bars, they all say ‘search posts’. Is there a setting in the admin panel to change this text? I’d like it to say, for example, ‘search anglers’.
Many Thanks.
Brett Golding
ParticipantYou cannot access this content.
Brett Golding
ParticipantThanks Ernest for coming back to me.
If you take a look at my ‘community.php’ page template file. You can see on line 343 onwards how I had set up the Custom Fields and passed in the Social Media URL’s before installing this plugin.
Basic while loop.
I have pasted your code into my functions.php file but it has had no effect. When I view the source code I am unable to locate the ‘social-icons’ div.
What I am trying to achieve here is the social HTML icons under each Angler. However, stored in WordPress are unique URL’s for each Anglers social media feed.
This is why I was previously using a loop in combination with the ACF plugin. To output the following.
(see image, this text field is breaking my code)
Under each Angler there were listed 4 social media icons, and the href for each icon was unique to the custom field inputted inside of that Anglers post in the backend of WordPress.
I hope this makes more sense.
-
This reply was modified 9 years, 7 months ago by
Brett Golding.
-
This reply was modified 9 years, 7 months ago by
Brett Golding.
-
This reply was modified 9 years, 7 months ago by
Brett Golding.
Brett Golding
ParticipantThanks 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">"></a>
<a target="_blank">"></a>
<a target="_blank">"></a>
<a target="_blank">"></a>
</div><?php endwhile; ?>[/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.
Brett Golding
ParticipantThank you for the response. Do you know why in the CSS section when I enter custom CSS code why it is not saving?
-
This reply was modified 9 years, 7 months ago by
-
AuthorPosts