jord_t
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Please explain these three lines for meBasically the not equal too part of the code checks that the custom field has a value before echoing it.
Forum: Fixing WordPress
In reply to: Ill pay $ – Need help with custom fieldsSo you want an image at the end of a post, and you want that image to link to a certain place? This could easily be done with custom fields? I can help.
Forum: Fixing WordPress
In reply to: posts orderby custom fieldCan’t really find a decent plugin for my requirement, so gona probably end up writing my own. Gather inspiration from the above plugin.
Forum: Fixing WordPress
In reply to: posts orderby custom fieldHave you got a link to a specific plugin by any chance? Did do a plugin search but couldn’t find one that fitted the above problem.
Cheers for reply btw
Forum: Fixing WordPress
In reply to: Posts on homepage order by ID?To order by ID, create a plugin using the following
add_filter('posts_orderby', 'jt_search_orderby' ); function jt_search_orderby($orderby) { if( is_page('all') || is_search() || is_category() ) { return "ID ASC"; } return $orderby; }
Forum: Plugins
In reply to: Search Results by RelevancePlugin called Search Reloaded does this.
Forum: Themes and Templates
In reply to: Custom Fields for Template (problem, seems like a bug)A little bit of extra information, if you are going to use custom fields for the div id, make sure this part is placed outside the loop;
<?php $div_id = get_post_meta($post->ID, 'page_div_id', true); ?>
Then you could just have this as your code;
<div id="<?php echo $div_id; ?>">Bla Bla</div>
Forum: Themes and Templates
In reply to: Custom Fields for Template (problem, seems like a bug)Is it neccessary for you to use this plugin? If this were me, i would place this inside the loop
<?php $VARIABLE = get_post_meta($post->ID, 'CUSTOM FIELD KEY NAME', true); ?>
and then echo the image where ever you wanted it on the page using the following code<?php echo $VARIABLE; ?>. As for the div ids for each page you could use some conditional tags
<?php if ( is_page(‘contact’) ) { echo ‘ id=”contact”‘; } ?>`. Or alternatively you could use the code above to call a custom id for the div for each page.Forum: Themes and Templates
In reply to: Custom Fields for Template (problem, seems like a bug)What code are you using to call your custom fields?
Forum: Fixing WordPress
In reply to: Iphone app not connectingI was also getting the XML-RPC error message, i got it working by inserting this link:
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="https://www.YOURDOMAIN.com/xmlrpc.php?rsd" />
. It is outputted by the<?php wp_head(); ?>
in header.php.Not sure if this will work for anyone else, however seemed worth a shot telling everyone about it as some of you were getting positive results when changing themes.