Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter RForster92

    (@rforster92)

    I figured it out in the end, you have to change the “[1]” in the code to which ever the ID is. And obviously as mine was all set to “[1]” it was just repeating the first image!

    Forum: Fixing WordPress
    In reply to: Search Form
    Thread Starter RForster92

    (@rforster92)

    I’m not really sure what I should put where, and which. As in where do i put this argument, and where do i put the URL stuff?

    Should I just paste my current code here?

    Sorry for being a bit thick, im still trying to learn PHP etc!

    Thanks for the help so far!

    Forum: Fixing WordPress
    In reply to: Search Form
    Thread Starter RForster92

    (@rforster92)

    Anyone? Sorry for double posting, its just that i’m kinda running out of ideas at the moment to what to do!

    Forum: Fixing WordPress
    In reply to: Search Form
    Thread Starter RForster92

    (@rforster92)

    That’s great thanks! However, these links are all dynamic fields as in, they are a custom field, so i’m not really sure how to even add a ‘parameter’ :/…

    Forum: Fixing WordPress
    In reply to: Search Form
    Thread Starter RForster92

    (@rforster92)

    Hi there. No worries i’ve figured it out how to do it. It wasn’t complex at all really.

    My next query is how to do it so when you click on a link (“Bristol”) for instance, it then takes you to that same form with that link filled in…

    I presume i’ll get the same answer but it would be good if anyone could help!

    Thanks

    Thread Starter RForster92

    (@rforster92)

    Nope, still doesn’t work on the other pages… :/

    Thread Starter RForster92

    (@rforster92)

    Yes, 224 is the ID of the image I want to show 🙂

    Thread Starter RForster92

    (@rforster92)

    When I paste that in, I get the following displayed on the screen:

    Array
    (
        [0] => Array
            (
                [1] => 224
            )
    
    )

    And nothing appears on other pages with that second bit of code you just posted.

    Thread Starter RForster92

    (@rforster92)

    Hi again, i’ve tried it and it doesn’t seem to display the image…

    My code as it stands is:

    <div class="sponsersretrieve">
    
    <?php $sponsersretrieveID = $post->ID;
    				$sponsersretrieve = simple_fields_get_post_group_values($sponsersretrieveID, "sponsersretrieve", false, 2);
    
    				foreach ($sponsersretrieve as $value) {
    				echo wp_get_attachment_image($value[1], $size='full');
    				}
    				?>
    
    </div>

    as the image to retrieve and on the page(s) to be displayed on it’s:

    <?php
    $home_page_id = 2;
    $home_page_value = get_post_meta($home_page_id, 'sponsersretrieve', true);
    if($home_page_value != '') : ?>
    <img src="<?php echo $home_page_value; ?>" />
    <?php endif; ?>

    Have I done something insanely stupid or …? Sorry to be a pain!

    Thread Starter RForster92

    (@rforster92)

    Okay, i’ll give that a go and let you know how it goes!

    Thanks for the quick responses!

    Thread Starter RForster92

    (@rforster92)

    Sorry I probably didn’t make myself very clear.

    Yes my front page is static (all the pages are ‘static’ pages). Above my actual ‘footer’, I have a place to put images in, which need to be the same across every page, but placing it on every page, and inserting every image to every page is pointlessly time consuming, so I was just wondering if there was a way to have it;

    editable on the homepage, and then the other pages almost copy whatever is in that custom field, and places it there as well. I’m pretty much a novice with WordPress/PHP :/

    Sorry i’m probably over confusing you there!

    Thread Starter RForster92

    (@rforster92)

    Yeah its a plugin, but i meant, custom fields, sorry for the confusion there!

    Thread Starter RForster92

    (@rforster92)

    Ah, sorry or a TRIPLE post but I don’t know how to edit my own comment haha.
    But basically,
    With that custom query in place, is it possible to do the same for catergories?

    As in, I have 7 different types of catergories on my site, but only want x amount of those posts within that catergory, to be displayed when clicked on said catergory, which then also has pagination to display later posts…

    if any of that makes sense!

    Thanks!

    Thread Starter RForster92

    (@rforster92)

    Hi guys, thanks for all the help, but i’ve figured how to pull in the featured image as well.

    Thanks for all your help!

    Solved.

    Thread Starter RForster92

    (@rforster92)

    Thanks for the support guys, I tried the first link which vtxyzzy suggested which works a treat, but is there a way for it to pull in JUST the featured image that i’ve set on the post? Or is that not possible…

    My php knowledge in general is a bit rubbish so i’m no really sure where to start…

    Thanks for the quick responses!

Viewing 15 replies - 1 through 15 (of 15 total)