gtcave
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Recent posts showing up on page 2,3,4,5 etchelp please anyone….
Forum: Fixing WordPress
In reply to: Recent posts showing up on page 2,3,4,5 etcanyone help me out, its an urgent problem, thats keeping my site down until its fixed…
Forum: Fixing WordPress
In reply to: Recent posts showing up on page 2,3,4,5 etcanyone got any idea….
Forum: Themes and Templates
In reply to: Alternating LI background colorsokay nevermind i worked it out.
I removed cat=13& from the code. Looks fine now.
Thanks for your help. Your a saviour lol.
Regards
Forum: Themes and Templates
In reply to: Alternating LI background colorsOkay small flaw in this code.
I pasted what you said:
<ul id="recentEntries"> <li class="entriesHead"><h3>Articles</h3></li> <?php query_posts('cat=4&showposts=10'); $alt = ''; while (have_posts()) : the_post(); ?> <li<?php if ($alt=='') { $alt = 'alt' } else { echo ' class='.$alt; $alt = ''; } ?> > <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> <span><?php the_time('F jS, Y') ?></span></a></li> <?php endwhile; ?> </ul>just above
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post"> <h2 class="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <div class="meta">Posted <?php the_time('F jS, Y h:i') ?> by <?php the_author() ?> </br> <div class="metacat"> Posted in <?php the_category(', ') ?> </div> </div>in the Index.php page so it just shows above the frontpage posts. I set the category to 13 so it shows list of all posts in category 13. Now this has affected what full posts appear on the code below it on the front page. Now only posts from cat 13 are appearing instead of all. How can i change it so it doesnt do this OR change it so it shows a list for all categories
Forum: Themes and Templates
In reply to: Alternating LI background colorsi know a little php and css and i see exactly how its working, much easier when viewing it like above. I got it working now thanks. See in the example you gave below
<ul id="recentEntries"> <li class="entriesHead"><h3>Articles</h3></li> <?php query_posts('cat=4&showposts=10'); $alt = ''; while (have_posts()) : the_post(); ?> <li<?php if ($alt=='') { $alt = 'alt'; } else { echo ' class="'.$alt.'"'; $alt = ''; } ?> > <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?> <span><?php the_time('F jS, Y') ?></span></a></li> <?php endwhile; ?> </ul>Okay so,
if $alt is not empty then the class=alt and when alt is empty it doesnt use any class. How would i set a class for when $alt is empty? Just replace the empty ” with a class name like alt2?Forum: Themes and Templates
In reply to: Alternating LI background colorsHello this is really difficult to understand but is exactly what i am looking for. Im having a little trouble getting it working. Im not anywhere near a professional at this so can someone give me an example of what i would put in the CSS file for the class etc?
Please reply asap.
Regards
Forum: Fixing WordPress
In reply to: moved to wordpress from joomlaanyone? 🙂 🙂 🙂 🙂
Forum: Fixing WordPress
In reply to: What is a database?set up a database in your CPANEL with a username and password.
OR go to your Cpanel and if it has fantastico go to that and do an automatic installation of WP.
Forum: Fixing WordPress
In reply to: moved to wordpress from joomlaHey Reggie, im kind of lost at the redirect.php bit.
How would i work out the /year/month/date of the article in the PHP file? My mind is blank. I kinda know what your trying to do and its what im looking for.
Forum: Fixing WordPress
In reply to: moved to wordpress from joomladoodlebee i thought i made clear i want to use the date in the URL’s and not the old joomla permalink. I know how to do it the way you just said but dont want it like that ‘ll try the way Reggie just said n see if it works.
Thanks
Forum: Fixing WordPress
In reply to: moved to wordpress from joomlalol i’ve had a look and its like a foreign language to me.
Anyone help me out?
I thought it was really hard at first, but in simplest terms i want anyone going to:
http://www.mysites.com/pspnews/%postname%/
to
http://www.mysite.com/year/mm/dd/%postname%/
Currently people going to
http://www.mysites.com/pspnews/%postname%/are redirected to a 404 page. I want them to be redirected to the new url. But i have no idea.
Anyone whos a genius at .htaccess files help me out!?
Forum: Fixing WordPress
In reply to: moved to wordpress from joomlaWell im moving completely to wordpress now and going to keep the same domain. I’ve ported all the articles etc over to the WP database, but need to redirect all the old urls to what i want as the new url structure in WP.
All i think that is needing done is redirecting people who go to
http://www.mysites.com/pspnews/%postname%/
to
http://www.mysite.com/year/mm/dd/%postname%/
I have no idea how to do this in .htaccess
Im a noob in .htaccess but im not stupid if you get me. 🙂
Can ya help me?Forum: Fixing WordPress
In reply to: moved to wordpress from joomlaNah thats not what im after. aaarrgghhhhh
Ok i may have a solution but i need a few people to confirm this for me if it will work.
Ok joomla URL’s are:
http://www.example.com/pspnews/articletitle/And for WordPress im using permalink:
http://www.example.com/dd/mm/yy/articletitle/I cant do php redirects because im not changing the main domain name.
Im thinking it must be possible to create code in .htaccess to show articles with 2 different permalinks.
For example to show a permalink like:
http://www.example.com/pspnews/articletitle/and ALSO like:
http://www.example.com/dd/mm/yy/articletitle/So articles appear when visited on both permalinks.
That way i wont lose page rank on articles and people viewing articles on the old URL will still see the same article.Anyone know if this is possible?
Forum: Fixing WordPress
In reply to: moved to wordpress from joomlaaww man, can no-body help me? I really want to finish the move to wordpress