lokjah
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: single category css not working for commentsForum: Fixing WordPress
In reply to: Query Posts-previous five posts how?argh.. helps if I read…
setup_postdata($post);
thats sussed… ??
just need to know how to do the random one now so it grabs 5 from all my posts available, rather than the 5 in the offset…
any ideas?
Forum: Fixing WordPress
In reply to: Query Posts-previous five posts how?ah one more thing.. im getting the same post id for each of those titles, and its actually the same post id as the last one in the first loop..
eg, the last post in my blog (#5) is post id 88, the code I’m using below shows each of these next 5 as post id 88 also, the titles work fine but not the id..
<ul id="previous">
<?php
$posts = get_posts('numberposts=5&offset=5');
//shuffle($posts); shuffles order of output posts
foreach($posts as $post) :
?>
<li><?php the_ID(); ?> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>in action_
Forum: Fixing WordPress
In reply to: Query Posts-previous five posts how?hmmm close firas
that seems to shuffle the order of the outputted post list, what I really wanted was it to pull random posts from all my posts..
this shuffle is cool tho..
maybe there isnt enough parameters in the get_posts to do this and I might need to go back to a second loop?
Forum: Fixing WordPress
In reply to: Query Posts-previous five posts how?sweet that worked dope! thanks firas….
now how about getting that previous 5 as random titles?
Forum: Fixing WordPress
In reply to: Query Posts-previous five posts how?ah cool, so would I do something like:
$posts = get_posts('numberposts=5&offset=5);
foreach($posts as $post) :
?>to show the previous 5 after the first loop of 5?
Forum: Fixing WordPress
In reply to: Create an archives pagelil different but I would suggest going thru chris’s excellent tute.
https://www.chrisjdavis.org/2005/05/26/secrets-of-wp-theming-part-1/
Forum: Fixing WordPress
In reply to: Photopress plugin BORKS when using site root wp index.[solved][woot]
ok I was able to fix it, I tracked down the bit I needed to tweak, and will post it in case anyone else changes their wp blog address to their site index and gets the same prob…
again I renamed my wordpress folder to wp, so just tweak it accordingly for yours…
$pp_photosaddress = $pp_blogurl . '/wp/wp-content/' . $pp_photofolder; //added /wp
$pp_photospath = $home_path . 'wp/wp-content/' . $pp_photofolder; //added wpthese are the last two lines in the “photopress-inc.php” file
Forum: Fixing WordPress
In reply to: Blog address is root, templates how?still lookin for some ideas… thanks
Forum: Fixing WordPress
In reply to: Photopress plugin BORKS when using site root wp index.I tried that all to no avail, will post to his site, but doesnt look like there is much support…
https://isaac.wedin.org/photopress/
and in case there is any confusion, regarding the root index.php:
WordPress address (URI) is set to https://mysite.com/wp
Blog address (URI): is set to https://mysite.com
wp is the name of my wordpress folder.
Forum: Fixing WordPress
In reply to: Blog address is root, templates how?https://chelseatownhouse.com/?page_id=12
this is the page that is supposed to be using the contact template. its not, its using the index.php that I have the blog address pointing to. https://chelseatownhouse.com/
you can tell at the bottom of the page it has “Posted in Location” that doesnt exist in my contact template, I’ve taken out the post meta data code in that template. If I take it out of the index.php at https://chelseatownhouse.com then it goes away, so this is how I know its using this index.php and not the contact page template in my theme folder.
i’ve also taken out the comments template code as well
Forum: Fixing WordPress
In reply to: Blog address is root, templates how?the site root, is the site root. mysite.com
this is what I changed in the wp admin panel to be my BLOG address rather than the default:
Blog address (URI): https://mysite.com/wordpressI’m using:
Blog address (URI): https://mysite.comin the root of my site (NOT the wp folder), I have an index.php, this is what wordpress is using as my blog address.
this index code is just the following:
Forum: Fixing WordPress
In reply to: Blog address is root, templates how?yeah they are, thats whats confusing, in each “edit page” view the template being used in the drop down is correct. but when the pages are viewed on the site, they are using the index.php in my site root, and not the ones in my theme folder
and this is the code i’m using for the template
Forum: Fixing WordPress
In reply to: Blog address is root, templates how?no, I mean that in the wp admin panel I’ve changed the blog address to mysite.com (my site root) as the blog address rather than the wp folder.
but yeah my wp index root still says that…
Forum: Fixing WordPress
In reply to: Blog address is root, templates how?huh uh, im not using permalinks or htaccess…
this is a straight out of the box no frills wp install.
wp is using the index.php in my root for all of my “page templates” and not acknowledging any of them that I have in my theme folder.