definining own teaser text for post
Use this widget: http://wordpress.org/extend/plugins/recent-posts-with-excerpts/
Use this widget: http://wordpress.org/extend/plugins/recent-posts-with-excerpts/
Seems like trying to put “field X” into db.table.record.fieldY is too atomic, or requires a better magic wand than google can find. I’ve gone a head and just ripped the posts out wholesale and injected them into the new DB. Here’s how I did it. I hope it helps the next poor sod who finds … Read more
You won’t find much on the Codex or the net about this. Media can seem like a pretty dark art, but everything you’re looking for is in /wp-admin/includes/media.php. The function you’re looking for is media_handle_sideload(). You’ll have to pass it a $file_array, which you’ll have to read up on. Basically you just make sure your … Read more
There are several plugins you can use. One of such plugin is Wordbook.
You should never have to touch the mod_rewrite rules. WordPress flushes/rewrites them to .htaccess whenever you save settings on Dashboard -> Settings -> Permalinks. If that’s not happening, then something is wrong, either with your file permissions, or your local server setup. Also, it is strongly advised NOT to use %postname% alone as your permalink … Read more
post__not_in accepts an array so change <?php $postid = get_the_ID(); // capture the id ?> to <?php $postid[] = get_the_ID(); // capture the id ?> and you’ll be fine.
If you’re trying to navigate between posts in the same category, would next_post_link()/previous_post_link() work for you? These functions have an $in_same_cat argument, that would appear to suit your needs? EDIT: Here is a Plugin, WP Category Archives, that might point you in the right direction? It purports to display: …a monthly or yearly archive of … Read more
Use comment_form() not a self made code. See the answers to question 15179 for a working example of a comments.php.
You can try get_post($post->post_parent) or get_page($post->post_parent) so if you do: $parent = get_post($post->post_parent); You can get the title like this: $parent->post_title; And anything you want, you can var_dump($parent) to see all the post info you can use.
Yes @janoChen, you can use wp_insert_post, take a look at this answers: WP insert post PHP function and Custom Fields Front-End Post Submission