invisionblue
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 404 Page Not Showingthanks all fixed, I had it set to a static page.
Forum: Fixing WordPress
In reply to: Lists Posts AlphabeticallyAlright thanks, I now have everything working properly as you can see https://www.vgarchives.com/category/xbox/ when you click on a letter the game will appear. Thanks and have a nice Christmas.
Forum: Fixing WordPress
In reply to: Lists Posts AlphabeticallyAhh it works now! ?? I had the custom query plugin turned on, I turned it off and boom it works perfect now! Thanks for the help on this, things should run smooth even on new upgrades of wordpress correct?
Forum: Fixing WordPress
In reply to: Lists Posts AlphabeticallyNope I don’t have any other category plugins or queries inside of category.php
What would have to be done for the code you gave me to work properly? I’m not much of an mysql expert so I don’t really know what to edit in the code but what you gave me is what I’m looking for exactly minus the errors of course.
Forum: Fixing WordPress
In reply to: Lists Posts AlphabeticallyOkay now it’s sort of working. https://www.vgarchives.com/category/xbox/ gives you one error https://vgarchives.com/category/xbox/ gives you two errors.
Forum: Fixing WordPress
In reply to: Lists Posts Alphabetically2.3.1 the latest one.
Forum: Fixing WordPress
In reply to: Lists Posts AlphabeticallyOkay I placed the following code in category.php
<?php $posts = new WP_Query("cat=$cat&orderby=title&order=ASC&showposts=-1"); if ($posts->have_posts()) : for($i='A';$i!='AA';$i++) : ?> <?php while ($posts->have_posts()) : $posts->the_post(); if( $i == strtoupper(trim(substr($post->post_title, 0, 1))) ) : if( !$a_z_header ) : $a_z_header = 1; ?> <h3 id="<?php echo $i; ?>"></a><?php echo $i; ?></h3> <ul> <?php endif; ?> <li><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li> <?php endif; endwhile; ?> </ul> <?php $a_z_header = 0; endfor; endif; ?>
And got the following errors:
WordPress database error: [Table ‘vgarchives.wp_categories’ doesn’t exist]
SELECT cat_ID FROM wp_categories WHERE category_nicename = ‘xbox’Warning: Cannot modify header information – headers already sent by (output started at /home/content/s/h/o/shockon/html/vgarchives/wp-includes/wp-db.php:160)
Forum: Fixing WordPress
In reply to: Lists Posts AlphabeticallyThat doesn’t do what I’m looking for, it just does the samething this does <?php query_posts(‘showposts=-1&orderby=title&order=ASC’); ?>
That would work if it showed a big bold alphabet letter before it begins each title section. Any other plugins you might know of or custom coding? Thanks for the help so far.
Forum: Fixing WordPress
In reply to: Which File Holds The Comment Error Template?I have figured this out myself if anyone else is having the same problem. It can be found in the wp-includes/functions.php file around line 1261.
Forum: Fixing WordPress
In reply to: How Would I Fetch This Using fetch_rss?Here’s my full setup code…
<?php // Get RSS Feed(s) include_once(ABSPATH . WPINC . '/rss.php'); $rss = fetch_rss('https://www.sherdog.com/rss/news2.xml'); $maxitems = 5; $items = array_slice($rss->items, 0, $maxitems); ?> <ul> <?php if (empty($items)) echo '<li>No items</li>'; else foreach ( $items as $item ) : ?> <li><a href='<?php echo $item['link']; ?>' title='<?php echo $item['title']; ?>'> <?php echo $item['title']; ?> </a><br><?php echo $item['content:encoded']; ?></li> <?php endforeach; ?> </ul>