Questions tagged [posts]

Posts are the core of WordPress. They store content, are categorized, and are expansible with meta. Posts are grouped by post type, and within their post type by taxonomy (though a taxonomy can span more than one post type).

Filter by
Sorted by
Tagged with
1
vote
3answers
6k views

How to pull blogposts using shortcodes

I want to grab the two latest blog posts on my homepage. i would also like the option to select the category if I want to also, but mainly just pulling the latest 2 blog posts. Thanks
5
votes
3answers
6k views

Number of post for a WordPress archive page

I want to be able to change the amount of post shown on each archive page on a per category basis. Is there something I can change in the loop code or a plugin that gives me that ability? Thank you ...
0
votes
1answer
143 views

Wordpress Menu options in the Admin: Posts for the dropdowns

Under Appearance > Menus I seem to be able to add Categories, Pages, or Custom Links as my menu/sub-menu dropdown items...but I can't add posts. I would like to have posts in my dropdown (posts of ...
3
votes
3answers
5k views

Remove image caption from post excerpt

I am currently using a wordpress plugin called "limit-posts" to better customize my post excerpts. The only issue I have is the excerpt is including the caption text from the image that is within the ...
1
vote
3answers
162 views

Wordpress blog post cloned and stolen?

I'm not sure if this is the right place to ask this but last night i made a post on my wordpress powered blog here: http://blog.twostepmedia.co.uk/css3-still-novelty-or-usable-in-everyday-web-...
0
votes
2answers
1k views

Make insterted image point to post url instead of attachment page

I am inserting an image in a post and I want it to point to the post detail page, not the attachment. What should I do? Thanks in advance.
2
votes
2answers
433 views

Display types of posts in edit.php instead of All, Published, Scheduled and Draft

By default, the post list (edit.php) in the admin panel displays a couple of options. It looks like this: All (10) | Published (8) | Scheduled (1) | Draft (1) I want to change this to display ...
1
vote
3answers
110 views

Styling images coming from another blog

I had asked a question earlier, on getting post-thumbnails from another WP-site. There, the awesome Mike coded a SQL query whose results are then passes on to a PHP array. The piece of code from that ...
0
votes
1answer
69 views

How would I got about calling a php file every time someone publishes a new post?

I've got a custom php file that I want to call every time someone publishes a new post. How would I go about doing that? Can I write it into the functions.php of my theme?
2
votes
2answers
2k views

Duplicate Posts using Feedwordpress

Feedwordpress has an issue with creating duplicate posts. This duplication does not happen predictably, however, so it is hard to debug it. I need to be able to reproduce duplicating posts before I ...
2
votes
4answers
3k views

Grid layout “last” class to every third item

Seems like a trivial problem but I can't get it to work. I need to add class="last" to every third post. Here is my code: <?php $count = 0; $my_query = new WP_Query('cat=-18,-7&...
33
votes
6answers
10k views

Turn a URL into an Attachment / Post ID

Is there any way I can take a URL of an image and find the attachment or post id of that image in the database? Here is the situation: I'm in a loop going over all the 'img' tags that are surrounded ...
2
votes
2answers
593 views

Set Expiration Date of a Post from the Frontend with wp_insert_post

i try to build a form that users posts from frontend, everything works fine but i need to know if it's possible, if i play with the 'post_date' => date('Y-m-d H:i:s')? if i add a hidden field that ...
2
votes
2answers
11k views

How to add a custom button to the tinyMCE toolbar?

I want to add a custom button to the tinyMCE toolbar in the 'Add New Post' screen which when clicked, will insert text into the new post. I have tried using this code (from http://tinymce.moxiecode....
0
votes
1answer
2k views

multicheck box for post metabox

Hi guys I have a headache on this I make a multicheck with this tutorial wpshout.com/create-an-in-post-theme-options-meta-box-in-wordpress/ the problem is it doesn't save all checked value and it ...
2
votes
4answers
217 views

Multiple information using custom post type

I made a new custom type, it's working fine. My question is: If i want to add in a single post that custom-type with different informations for about x times...how should I do this? Example: Let's ...
4
votes
4answers
1k views

order posts by date like craigslist

the image is worth a thousand words. take a look at it. you know how craigslist has posts organized by date ..ex Tue 3 post links for tuesday Wed 4 post links for wed Thurs 5 post links for ...
1
vote
1answer
243 views

Specifying # of Posts per page using inline post plugin (:

I am working on a website for my school. I downloaded the inline post plugin. This plug-in allows you to make posts on multiple pages throughout the site. However, I am having trouble displaying a ...
1
vote
2answers
594 views

How to embed form data within the 'Add new post'

I want users to be able to use a car template in new posts. The template will include items such as a photograph of a car, make, model, number of doors, colour of car, etc. Users will not want to use ...
2
votes
1answer
205 views

Making pages also serve as taxonomies? Or give full pages to taxonomies?

I run a video game news blog. When my staff writes a news article or a review, I would like them to be able to "assign" that post to a game (if applicable), so then I could have the single.php ...
4
votes
2answers
4k views

Getting post-thumbnails from another WP site

I have two WordPress installations, one at http://inversekarma.in and the other at http://inversekarma.in/photos. The latter is a photoblog, and its theme uses the standard WP post thumbnails (EDIT: ...
0
votes
2answers
2k views

WordPress : using AJAX to get posts & Sidebar Content to an external application

Hello friends I am trying to get my wordpress posts to display in a non- wordpress application. Currently I am getting them by using the following method. My wordPress page is something like this: &...
8
votes
2answers
10k views

Front-End Post Submission

I am trying to add a form where users can submit post from front-end. I am Following this tutorial: http:// wpshout.com/wordpress-submit-posts-from-frontend/ What I am doing is adding this code to ...
0
votes
1answer
347 views

Crossposting from WP to Blogger with comments

I know that there is a way to crosspost from WP to Blogger but I am curious if there is a way to essentially mirror WP blog on Blogger completely, in other words crosspost both posts and comments?
0
votes
2answers
415 views

Copying post thumbnail to custom field

I've just moved to another theme, and it uses the custom field bigimage for associating an image with a post, instead of using WordPress's post thumbnails. How do I copy the URLs of all existing post-...
0
votes
2answers
90 views

Summary of Posts by an User

i have a buddypress blog at http://thelazy.info . When I click on a user his buddypress profile opens up. Can there be a summary of his posts in his buddy profile or directly that opening up when user ...
1
vote
1answer
987 views

How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?

I've got two custom post types: CD and Track. Each of them has got some metadata associated with them. What I'm trying to do is to add Track posts to a CD post when the CD post is being edited. On ...
1
vote
1answer
101 views

Get the most repeated post contents from a search?

In my site the posts content is always the name of a school, so if I search for Chicago I get a lot of posts with different schools as content. What I want to do is to get the Schools with the most ...
0
votes
1answer
180 views

Summary and Comments on Main landing Page

I am having a wordpress blog at http://thelazy.info/ . By default, only one post is displayed on the page. I want to increase the default content on the main page to 5-10 posts with a small ting of ...
0
votes
2answers
288 views

Permalink structure and dedicated comment pages

I want to edit my permalink structure so that individual post URLs are structured like this...blog.com/p1, blog.com/p2, blog.com/p523, etc I also want to edit my permalink structure so that comment ...
5
votes
1answer
3k views

the_author() returns empty string

I have created a page template for the front page of a site I am building using WordPress. I am displaying the 3 latest posts on this page and all works fine except for the display of the author of ...
2
votes
1answer
175 views

Syndicated Posts when Updated Lose <p> HTML tags

When I have a syndicated post and then make an update to the syndicated copy (not original) it shows up in my blog as one long run-on paragraph. Nothing happens to the Visual or HTML data in that post,...
1
vote
1answer
2k views

post to subcategory and parent in wp_insert_post

this code works fine. the problem i have is that when i submit it only checks the parent category not the subcategory even though i specified both a parent and a subcategory. please. what am i doing ...
2
votes
2answers
510 views

Relative Time On Posts

I am looking for a way that I could add some code to my wordpress template to display the time of a post in relative terms. So if, for example, I posted something 5 minutes ago it would say something ...
2
votes
1answer
2k views

show posts names and links in the sidebar list as categories child

i'm using this plugin to show an exapandable/collapsible widget-menu in my sidebar. http://wordpress.org/extend/plugins/folding-category-widget it works very well! the question, not directly ...
1
vote
4answers
6k views

Show 'Read more' in rss feed

How can I show 'Read more' links in rss feed instead of showing excerpt? The settings in reading only allow to choose between full content and excerpt.
2
votes
1answer
303 views

Tag link suggestion plugin

Every time I write a post I make sure I add links to words that I have tags for. For example: "The economy of Brazil has improved in the last few years". This ensures that when people re-post my ...
0
votes
1answer
181 views

A sports wordpress website

Hello wordpressers Is there a way of joining custom post types? One custom post type for players and another custom post type for results? What i'm trying to do is use some post from the custom ...
1
vote
3answers
283 views

Visual / HTML tabs vanished on editor

The Visual / HTML tabs have vanished on the editor on posts and pages. I'm not sure when this happened, but I've tried deactivating my plugins with no joy. Any ideas? Thanks, Lucy
1
vote
1answer
140 views

Server-side sorting of posts

I have seen on some websites that you can sort posts server-side by passing in some queries like so: domain.com/?sort=date or domain.com/?sort=name How would I do this with WordPress posts on a page?
-1
votes
1answer
11k views

simple wp_insert_post example

i've spent way too much time trying to use the wp_insert_post() function a <form> and i do not know why it is not working. // Create post object $my_post = array( 'post_title' => 'My ...
2
votes
1answer
5k views

WP_Query with the “offset” argument

I'm making a custom query for posts using something like: $p = new WP_Query(); $p->query(array('offset' => 30, 'posts_per_page' => 10)); If I have 36 posts on the entire blog, $p->...
0
votes
1answer
141 views

What do these phpMyAdmin errors mean on my WordPress databaes?

I'm getting 3 very similar phpMyAdmin errors on one of my WordPress databases. More than one INDEX key was created for column `comment_approved` More than one FULLTEXT key was created for column `...
2
votes
3answers
4k views

get next next post in single.php

I really need your help. in my single.php I had to get the next post in the same category (which i already have by: $in_same_cat = true; $excluded_categories = ''; $previous = false; $next_post =...
0
votes
1answer
479 views

How to replace “Password Protected” text with icon in Admin

In Wordpress, whenever a post is password protected the backend admin area appends the text in bold "- Password protected" after the post title. What I am looking for is a way to remove this text and ...
1
vote
1answer
6k views

Showing Thumbnail from Previous and Next Posts

Is there a simple way to use the post thumbnail when calling previous_post_link() and next_post_link()?
3
votes
1answer
3k views

Can I load posts via Ajax?

I would like to make a portfolio page where each entry (a post) would be fetched using Ajax. This way I would have an image gallery, but in which I not only would have images but also the ...
1
vote
1answer
7k views

Is there plugin to show recent posts from one website in the widget area of another?

I would like to take the titles of recent posts or content related posts from one website and display them in the widget area of another website. I'm sure there must be a way to do this, perhaps some ...
4
votes
3answers
3k views

Modifying admin sidebar contents to show pending posts indicator

I've been trying to get a pending count to appear on the admin sidebar, for pending posts, like the little bubble that appears for pending comments: Offtopic: Am I the only one that thinks this ...
2
votes
1answer
341 views

Want to have the Post editor remembering the last editing position

As you probably know the WordPress theme editor remembers its last editing position, but I want my post editor to do the same (it jumps to the top if you save a post/page).... Any tips/hacks how to ...