RForster92
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Simple Fields – Display multiple options in one field groupI 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 FormI’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 FormAnyone? 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 FormThat’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 FormHi 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
Forum: Fixing WordPress
In reply to: Echo simple field value across pagesNope, still doesn’t work on the other pages… :/
Forum: Fixing WordPress
In reply to: Echo simple field value across pagesYes, 224 is the ID of the image I want to show ??
Forum: Fixing WordPress
In reply to: Echo simple field value across pagesWhen 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.
Forum: Fixing WordPress
In reply to: Echo simple field value across pagesHi 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!
Forum: Fixing WordPress
In reply to: Echo simple field value across pagesOkay, i’ll give that a go and let you know how it goes!
Thanks for the quick responses!
Forum: Fixing WordPress
In reply to: Echo simple field value across pagesSorry 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!
Forum: Fixing WordPress
In reply to: Echo simple field value across pagesYeah its a plugin, but i meant, custom fields, sorry for the confusion there!
Forum: Fixing WordPress
In reply to: Custom Post Type Pagnation issueAh, 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!
Forum: Fixing WordPress
In reply to: Custom Post Type Pagnation issueHi 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.
Forum: Fixing WordPress
In reply to: Custom Post Type Pagnation issueThanks 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!