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).

learn more… | top users | synonyms (2)

1
vote
1answer
170 views

Saving category to a post, before publishing the post

I have created a link from the dashboard, which goes to add new post, but with a category already selected for the post - but the post will not belong to this category before publishing - this is a ...
0
votes
1answer
41 views

Category pages vs single post pages

For each of a few categories there is a "main" post which should be displayed at the top of the category list page. Should these pages (where both the "main" post and the list of the rest posts for a ...
0
votes
1answer
87 views

Which file displays the date archive?

I'm building a new theme. I'm now working on to figure out which file is needed to show the "whole" post for a specific date which displays when you click on a date in the built in WordPress calendar ...
0
votes
1answer
80 views

WP_Query based on a custom field result

I would like to know if there's a way to do a query filtered by a custom field result. In this case, I have 6 posts I would like to retrieve, but only if they have "true" selected in a custom field ...
2
votes
1answer
324 views

Use plugin or custom post type for game score functionality

The last couple of days I've been working on a plug-in that adds the functionality of keeping scores from a paintball game. When I manage to finish it I want to present players with a form so they can ...
0
votes
1answer
568 views

how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?

How add_action("manage_posts_custom_column", "custom_callback_fun01"); relate to add_filter("manage_{xxxx-xxx}_columns", "cusotm_callback_fun02" );? How do they both work together? By using these ...
0
votes
1answer
279 views

Pagination for normal (standard) posts on a page with a custom loop?

probably a rather straight forward question. my "homepage" is not the blog-page. I have a page-template named page-knowledge.php which has the following loop on it. <?php echo '<ul ...
2
votes
2answers
91 views

Is there an action that is called when a post is restored from the trash?

I'm looking at the wordpress list of actions and trying to find an action that is called when a post is restored from the trash but cannot find one. Does anyone know if it exists?
0
votes
3answers
271 views

Display a custom field rating system in the front end

I have added a content rating system to my platform where the authors can select which audience their post is appropriate for. Currently, these options are available: Unrated G PG ...
0
votes
1answer
184 views

Hide content from Post Preview

Is it possible to hide content in Post Preview (that is not hidden when the post is published)? I have customised single.php quite extensively and there are a few elements that I do not want my ...
1
vote
0answers
814 views

Dynamic dependent Dropdown lists for Categories, Sub-Categories and Posts!

I'm using WordPress 3.5 as CMS to develop my personal website. The reason I'm writting, is that I need a way to implement a code or plugin to allow users to navigate through posts using ...
2
votes
3answers
169 views

Post author is changed to admin after his post is modified by admin

I am writing a plugin which will enable to write posts from front-end. Those posts have to be checked by admin before published. Now if admin edits the post or publishes the post, the post author is ...
0
votes
1answer
173 views

How to limit post query to only return a total count of items with certain post statuses?

I have a couple functions that are creating an admin table to display on my custom dashboard page. I'm having a little trouble with the function that determines what pages to display because I'm not ...
1
vote
2answers
2k views

Display all posts from specific categories on a page

I want to display all posts from specific categories on a single page. Therefore I edited the page.php file in my theme folder. I added an 'if-clause' to check which page currently being displayed and ...
0
votes
1answer
28 views

Columns in a “post”

I understand that all of wordpress is structured around certain key "entities". Some of which are, Pages Posts Comments That list is by no means exhaustive because I know wordpress has few other ...
-2
votes
1answer
843 views

How can I display these posts in ascending order?

I am trying to display the following posts in descending order beginning with the first created and ending on the last page with the most recently created post. Any help is appreciated. Here is my ...
2
votes
3answers
340 views

Side by side blog posts that are tied together

I'm looking for a way to have the screen split with side-by-side blog posts that are tied together. My client has her Grandather's travel dairies and wants to posts the entries. The originals are in ...
2
votes
1answer
58 views

Same content shared between multiple posts?

I want to have some cotent shared between various posts. Why? I am writing a series of posts on backbone js. The thing is every post has some common content ie from where you can download the ...
0
votes
2answers
190 views

Get image paths from RSS feeds

I'm displaying the content from one wordpress blog page on my server onto a different wordpress blog on the same server. Apparently the only way is through RSS feed. The images don't show up. I ...
1
vote
3answers
356 views

Unschedule a post

I have some posts scheduled for tomorrow. I want instead to remove the scheduled date and simply publish them manually when I am ready. I can't find anything about this. Does just setting them to ...
0
votes
2answers
322 views

How to show category based post in home page?

Suppose I have 3 categories (cat 1 , cat 2 , cat 3) , and my blog home page shows 6 recent posts . I want to show 2 recent posts from every category. How can I do it?
2
votes
2answers
4k views

Next_posts_link() works only with original $wp_query

I've got custom template that I want to display paged blog posts. This is the beginning of my file: $wp_query = new WP_Query($args); if($wp_query->have_posts()){ ...
1
vote
1answer
146 views

Add code just after Post content

I am in a bit of dilemma here so bare with me. I want to add something like this code just after the content in a post: <p>Please let me know what you think by <a href="#comment">leaving ...
1
vote
1answer
455 views

How to allow visitors to filter posts by multiple taxonomies

I am trying to allow users to filter a custom post type list by multiple taxonomies. For Example lets say my custom post type is clothing and it has two custom taxonomies brand and type associated ...
0
votes
1answer
129 views

Visual (non-HTML) display of post revisions

So you know when you click "show revisions" on a post and can choose to edit any of the recent drafts? I have a client, non tech-savvy, who is frustrated by how the revision previews display as HTML ...
-1
votes
1answer
487 views

How to redirect image attachment to its original post

I'm making a slider that is getting images from attachments in the post. I am trying to rewrite the url for the post so that if someone pastes the direct url to the attachment, it'll go the post ...
4
votes
2answers
2k views

How to add category to: 'wp-admin/post-new.php'?

I want to have a link to create a new post that sets the category also. I have tried wp-admin/post-new.php?post_category=12 and wp-admin/post-new.php?cat=12, but neither worked. I also tried using ...
2
votes
1answer
615 views

Article source link for posts

Is there a way to add a source link at the end of an article like TechnoBuffalo (scroll down to end of post) with a plugin? If someone could find a plugin or quickly make one for me that would be ...
0
votes
1answer
50 views

Problem with quotes

I have a strange problem with the latest version of Wordpress: Some writers, when they write a story, you see the quote character ', replaced with /, something that does not happen to me. Is there any ...
0
votes
1answer
217 views

Why posts array is empty?

I try to get posts that either do not have a custom field set or if set have a value not like a given parameter. Here is my code: $args_included = array( 'numberposts' => 1, ...
0
votes
1answer
185 views

Redirect posts to sub domain except pages

We have a WordPress site, which contains posts and pages. Now we moved posts into sub domain but we kept pages into root domain. Only Posts has .html extension and there is no difference in the URL ...
4
votes
1answer
751 views

Is it possible to bold certain words in a post title?

I guess I would like to be able to include HTML tags within the title so that when the title is listed certain words are bolded. Is this possible? When I try to put HTML into the title, the tag ...
2
votes
2answers
482 views

Different permalink for posts and authors

I tried to avoid ask this question, because I think that must be simple, but after long hours trying to get an answer I cant achieve it. I am trying to get a permalink structure like this: ...
0
votes
2answers
815 views

How do I stop the loop from repeating in my category template?

For some reason, when viewing a category, the posts are repeated - basically the whole loop repeats as many times as there are posts for that category. E.G.: If category_a has 3 posts, the page will ...
1
vote
1answer
82 views

How can i sort the categories by ID

Hi all I am newbie to wordpress I am using the wp_list_categories in the sidebar to display the categories . How can i display thus categories sort by id any one much appreciated... <?php ...
0
votes
1answer
684 views

How to get the next and previous image title from attachment or gallery?

I'm trying to build a slider exactly like this in wordpress. I have managed to make the slider work except the next/prev button. I need to get the next image title and the previous image title for the ...
1
vote
1answer
1k views

Load posts into sidebar and paginate via ajax?

Is it possible to paginate, or load the next / previous posts in the sidebar without messing with the entire page pagination? Such as AJAX? Right now I'm querying custom post type posts to load the ...
4
votes
2answers
727 views

Category checkbox list tree changes when editing a post

I'm setting up the categories for my website and I have them like so: That's it, I have children of the same name but they are not interchangeable. If that bugs you just think that they have ...
1
vote
1answer
783 views

How to add tags (custom taxonomy) to post class css?

I am trying to figure out how to add my custom taxonomy for tags to the post class css when I already have added the custom taxonomy for categories. The code Im currently using to add the category ...
0
votes
1answer
134 views

get_posts from a category id doesn't work

I use the following code to get portfolio type posts from category id, but it doesn't work. $args = array( 'numberposts' => $items, 'post_type'=>'portfolio','orderby' => ...
0
votes
5answers
3k views

Get post excerpt and title by specific post ID?

I'm trying to get post excerpt and title by specific post ID. My post ID is 6 and my code as follows <?php $id = 6; $post = get_post( $id ); $excerpt = get_excerpt( $id); $excerpt ...
0
votes
1answer
346 views

Filter/Sort Post Form On Taxonomy page

I am trying to create a form on the taxonomy template that will be able to filter the posts the current user is viewing. I want to use a few drop downs and submit button to do so. My code looks like ...
0
votes
2answers
720 views

Linking to page with all posts

I'm new to the Wordpress world. I've read the template hierarchy document and read online, but, I wanted to get feedback from here on what the best way to do this would be. What I'm trying to do is ...
0
votes
1answer
94 views

Site 'Categories': save an admin global setting with post metadata [closed]

In WPMU, we are using Site Categories (with Sitewide Tags), but for the life of me I can't see how the category of the sub-site (say, departments in a school) to which each blog belongs ends up in the ...
0
votes
2answers
151 views

How to display a single(current) post from a category

How do I get the code below to display just the current post that corresponds to the current URL and not all the post from the same category? Barakadam, It works but it brings all the posts in the ...
0
votes
2answers
2k views

previous_post_link() and next_post_link() with a custom post type?

I'm on single-work.php for a custom post type called work, inside the loop. Trying to make two links to the previous and next post. Using this code: <?php previous_post_link(); ?> and ...
0
votes
1answer
43 views

Display code if title of the custom post matches title of other post

I have two custom posts, one called "reviews" and another called "guides". I want to display a custom field from the post reviews if the title of the two matches. Something like this: (I am not good ...
0
votes
2answers
30 views

making a few sites in wordpress

I have just started to build in Wordpress, and my question is how can I build a few website in WP? After I purchase domains, do I need to install the program every time I want to create a new site?
1
vote
1answer
313 views

How can I hide tags on a child-category page, if that tag has not been used?

I have a section of my site where I'm using child-categories and tags to sort content. I'm have a tertiary navigation for the tags (templates/nav-tags.php): <nav class="side left"> <ul ...
1
vote
3answers
2k views

Limit the word count in the post title

Is there a way to limit the word count of the post title? I searched over the internet but found nothing. All I know is, only the content of the post can be limited or excerpted.