thsoto
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How do the Revisions work?I thought the original was “post” and the revisions pointed to it?
Forum: Fixing WordPress
In reply to: How to pull news articles for iPhone app?anything?
Forum: Fixing WordPress
In reply to: How to pull news articles for iPhone app?Any help?
Forum: Fixing WordPress
In reply to: Problem inserting media (photos)Thanks for posting that!
I think I was using a stylesheet from an older version of WP.
Forum: Fixing WordPress
In reply to: RSS Feed imports whole article instead of excerptHfort… that appears to have worked! I just overlooked that.
Thanks!Forum: Fixing WordPress
In reply to: RSS Feed imports whole article instead of excerptA little more info…
IE 8 – Display the full articles
Firefox – Displays excerpts
Safari – You can set the article length yourselfI have some people pulling my feed onto their website or e-newsletters and they can only get the excerpt.
Thanks!
Forum: Fixing WordPress
In reply to: Importing articles from an old .txt file databaseThanks for the help. I don’t think I will be concerned with that stuff. Those articles are 1-7 years old. I was just trying to get them all in the same database.
Forum: Fixing WordPress
In reply to: Importing articles from an old .txt file databaseThat worked! Thanks!
I have another question now. My wp_postmeta table is empty. What goes into that table? Do I need to put anything in it?
Forum: Fixing WordPress
In reply to: Importing articles from an old .txt file databaseThis is most of my code
<?php include_once 'formatting.php'; $users['user1'] = 3; $users['user2'] = 4; $users['user3'] = 5; $users['user4'] = 6; // Open file for read and string modification $file = "2.txt"; $fh = fopen($file, 'r+'); $contents = fread($fh, filesize($file)); //$new_contents = str_replace("hello world", "hello", $contents); //fclose($fh); $contentArray = split("\n", $contents); $already = array(); foreach ($contentArray as $key => $val) { $row = split("\|:\|", $val); $date = date('Y-m-d H:i:s',$row[6]); $curUser = $users[$row[1]]; $text = addslashes($row[7]); $title1 = addslashes($row[4]); $title2 = sanitize_title_with_dashes($row[4]); echo "INSERT INTO news_posts (post_author, post_date, post_date_gmt, post_content, post_title, post_category, post_status, comment_status, ping_status, post_name, post_parent) VALUES ({$curUser}, '{$date}','{$date}','{$text}', '{$title1}', 0,'publish','closed','open','{$title2}',0);\n"; } ?>
I’m not setting the ID in my code. Just importing it into MySQL. Will what you suggested work with my code if I insert it after the echo?
Thanks!
Forum: Fixing WordPress
In reply to: Importing articles from an old .txt file databaseAny help?
Forum: Fixing WordPress
In reply to: How to get archives by category?esmi – It doesn’t work. I tried it and it just returns the “News” category with no article titles.
MichaelH – If I change that setting it would work, but then it messes up my homepage because I only want one article showing there.
I really need something that works exactly like
wp_get_archives('type=postbypost);
but displays them by category.Basically when I go to https://www.mypage.com/news/ I want it to show all article titles in the News category in ascending order by date.
Forum: Fixing WordPress
In reply to: How to get archives by category?esmi…. that would only return the cateogry title in a list, not the titles of all of the articles in that specific category.
MichaelH – your suggestion would work I just have to figure out how to loop through and show all of the titles for the given category. currently it will only show the newest article title for that specific category.
Forum: Fixing WordPress
In reply to: Next Post/Previous Post ProblemThanks! That worked!
Forum: Fixing WordPress
In reply to: Next Post/Previous Post ProblemHaving the same problem on my single.php page.
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div id="textwrap"><h1><?php the_title(); ?></h1> <div id="textarea"> <span class="date"><?php the_time('F jS, Y') ?></span><br /> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <div class="entry"> <?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?> <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <?php the_tags( '<p>Tags: ', ', ', '</p>'); ?> </div> </div> <?php //comments_template(); ?> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Older Articles') ?></div> <div class="alignright"><?php previous_posts_link('Newer Articles »') ?></div> </div> <?php else: ?> <p>Sorry, no posts matched your criteria.</p> <?php endif; ?>
Why won’t it display on these?
Thanks!
Forum: Fixing WordPress
In reply to: Next Post/Previous Post ProblemThanks! I originally had that and it was showing up. Just tried it again and it works. The only thing I changed was in the Settings > Reading section I changed the Blog posts to 1 instead of the default of 10. Apparently, that’s why it wasn’t showing up.