enkayes
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Permalinks point to host root and not domain.There’s also: https://codex.www.ads-software.com/Moving_WordPress
Forum: Fixing WordPress
In reply to: Permalinks point to host root and not domain.Hm, what’s the WP Address and Site Address in General Settings?
Forum: Fixing WordPress
In reply to: Permalinks point to host root and not domain.When did you change the permalink settings?
I used to run into permalink issues that originated because I made all the pages/posts before changing the permalink settings.
Also, lilqhgal is right on. I always have problems with WP-Super Cache not updating pages and structure.
Forum: Fixing WordPress
In reply to: Older/Newer Entires = 404Fixed!
First line screwed me up:
<?php query_posts('posts_per_page=4&order=DEC'); ?>
Just changed the settings in Settings–>Reading and it works!
Forum: Fixing WordPress
In reply to: Custom Fields If Statementwin!
Thanks so much!
I kept trying <?php bloginfo(‘template_url’); ?> but what having issues because of the opening and closing php tags. I didn’t even know that function existed.
+5 internets to you.
–nks
Forum: Fixing WordPress
In reply to: Custom Fields If Statementand just to give more perspective…
The custom field ‘side-bar-video’ has a value of *filename*.swf and the path to the file is /wp-content/themes/*my-theme*/media/videos/*filename*.swf
Forum: Fixing WordPress
In reply to: Getting custom fields from all posts within a postSolved!
<div id="stats-current-weight"> <?php $currentWeightArray = array(); $meta_key = 'weight-lost'; $currentWeightArray = $wpdb->get_col($wpdb->prepare("SELECT meta_value FROM $wpdb->postmeta WHERE meta_key = %s", $meta_key)); $currentWeightArrayTotal = 297 + array_sum( $currentWeightArray ); echo $currentWeightArrayTotal; ?> <p class="stats-text">current weight</p> </div>
Forum: Fixing WordPress
In reply to: Getting custom fields from all posts within a postI’m on the right track with this:
<?php $querydetails = " SELECT wposts.* FROM $wpdb->posts wposts, $wpdb->postmeta wpostmeta WHERE wposts.ID = wpostmeta.post_id AND wpostmeta.meta_key = 'weight-lost' AND wposts.post_status = 'publish' AND wposts.post_type = 'post' ORDER BY wposts.post_date DESC "; $pageposts = $wpdb->get_results($querydetails, OBJECT) ?> <?php if ($pageposts): foreach ($pageposts as $post): setup_postdata($post); ?> <div> <?php echo get_post_meta($post->ID, 'weight-lost', true); ?> </div> <?php endforeach; endif; ?>
just have to figure out how to add the values.
–nks
Forum: Fixing WordPress
In reply to: Blog articles formatted wrong in IE7/IE8Did you clear all floated elements?
Forum: Fixing WordPress
In reply to: Finding and adding custom fields together+5 internets to you both! Thank you!