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

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • in reply to: A couple questions #10524
    Brett GoldingBrett Golding
    Participant

    Ernest thank you so much for your help.

    in reply to: A couple questions #10509
    Brett GoldingBrett Golding
    Participant

    Your 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.

    in reply to: A couple questions #10477
    Brett GoldingBrett Golding
    Participant

    You cannot access this content.

    in reply to: A couple questions #10445
    Brett GoldingBrett Golding
    Participant

    Thanks 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.

    in 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.

    in reply to: A couple questions #10385
    Brett GoldingBrett Golding
    Participant

    Thank you for the response. Do you know why in the CSS section when I enter custom CSS code why it is not saving?

Viewing 6 posts - 1 through 6 (of 6 total)