mitchrenton
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Dealng with multiple taxonomiesHere’s the code https://pastebin.com/8HPSYW5Q
Forum: Fixing WordPress
In reply to: How to retrieve multiple pages using query_posts?Just used this piece of code, thanks very much. I added an “orderby” into the array and for some reason none of them are working, meaning I’ve ordered by “ID”, “menu_order”, “modified” but none of them change the order of pages that I’m looking for.
EG. ‘orderby’ => ‘menu_order’
Am I missing something here?
Forum: Fixing WordPress
In reply to: Timthumb not working on my serverThanks for you response guys, I’ve actually found the problem. The server was running php4 and the script requires php4.3
Does anybody know of an alternative to timthumb?
Forum: Fixing WordPress
In reply to: Returning pages with a specific Custom FieldI’ve managed to solve this one, incase anybody else runs into it…
You have to tell the loop that you want to look at pages and not posts by using the following…
<?php query_posts(array('post_type' => 'page'); ?>
Forum: Fixing WordPress
In reply to: Returning pages with a specific Custom FieldOops just realised a typo, should have read…
Hi Guys,
Just wondering if anybody can help me here. I want to create a loop that returns all pages with a specific custom field. Can this be done? I have no problem returning *posts* with specific custom fields but having trouble returning pages.
Has anybody achieved this?
Forum: Fixing WordPress
In reply to: Custom List Pages ArgumentI don’t think I explained myself well enough in my original post. My page hierarchy is like this…
About -> James
Tim
DavidSo If I am on the about page I want to display, James, Tim and David. If I am on either the James, Tim or David page still want to display the same pages (James, Tim, David).
Just wondered if I am on the right track with this code…
<?php $children = wp_list_pages('title_li=&child_of='.$post->ID.'&echo=0'); if ($children) { ?> <ul> <?php echo $children; ?> </ul> <?php } else; { ?> //need an argument here to say display pages on the same level as current page <?php } ?>
Forum: Fixing WordPress
In reply to: Custom List Pages ArgumentThanks for that, are you suggesting I use 2 different page templates?
I’m really trying to keep this as lightweight as possible and would much prefer to use one template.
Any other suggestions?
Forum: Fixing WordPress
In reply to: Conditional Tags Query…Thanks esmi,
The update on that worked a treat, the subpage_of function is very helpful.
Forum: Fixing WordPress
In reply to: If statement regarding the page you are on…That code worked, ignore me!
Forum: Fixing WordPress
In reply to: If statement regarding the page you are on…Ok Guys, I’ve had a little crack at it with disastrous results!
Here is the code I’m using https://pastebin.com/m6ec65372
Is it totally wrong or am I on the right track?
Forum: Fixing WordPress
In reply to: Displaying custom fields on posts pageThanks matey, can’t thank you enough
Forum: Fixing WordPress
In reply to: Displaying custom fields on posts pageI’ve also posted my page-home.php file here:
Forum: Fixing WordPress
In reply to: Displaying custom fields on posts pageHey, sorry for the delay getting back to you. I’ve used your code for the index.php file (Way better!) which you can find here: https://wordpress.pastebin.com/m4f6dd9c3
I’ve pasted my page.php file too, this has my old code (I havent updated it yet.) That can be found here: https://wordpress.pastebin.com/m7730e227
Forum: Fixing WordPress
In reply to: Displaying custom fields on posts pageApologies for that last message, the file with regards to the home page is called page-home.php.
The page is definitely powered by the index.php
I would really appreciate if you could try and figure something out. I’ll have a think myself
Forum: Fixing WordPress
In reply to: Displaying custom fields on posts pageBasically, I am using a static home page which is called “home” which is a template file called home.php. Then I am using case-studies as my posts page. The case-studies page is powered by the index.php file. This is the page that isn’t pulling the data.
So…
Front page displays: * A static page
Front page: HOME
Posts page: CASE STUDIESDoes that make sense now?