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)

0
votes
2answers
166 views

Change permalinks for posts but not custom post type?

I want my permalink for my standard posts to be www.mywebsite.com/photoblog/name-of-post So I've written the custom structure as: /photoblog/%postname%/ However, my custom post type 'projects' ...
2
votes
2answers
586 views

get selected post using $_GET

im trying to get a post info when I click a button on the post and make it echo out the the same info it has in the else function, I tried adding in a query but in return it makes it echo back all the ...
0
votes
1answer
446 views

Wp-query causing problems with the_content();

I'm using some code provided in an answer on here to calculate "post X of Y" and display pagination icons on single.php. It works beautifully but it's causing problems displaying the_content(); On ...
3
votes
1answer
6k views

Change Posts per page count

In the wordpress settings => Reading => Blog pages show at most [input field] posts I have it set to 3 posts at the moment. On my index, date archives, tag archives, category archives, search ...
4
votes
2answers
3k views

Manually set global $post vars with an ID, in order to use template tags

I have a function retrieving ID's of posts by very specific means. I need to be able to set the global $post in order to use functions like the_content(), which does not allow an ID as a parameter. ...
0
votes
1answer
97 views

Display “Post 2 of 4” on single post page?

I have a custom post type called Projects. When viewing a single 'project' post I have next/prev buttons to navigate through them. I also want to display text saying "Project 2 of 4" or ideally ...
2
votes
0answers
341 views

How to set post expiration date and time and move the page to archive after expiration [closed]

My requirement is to move the certain posts from home page category after specified date and time. I have two category News and Events. Both have so many posts and i dont want to show all the posts ...
1
vote
2answers
1k views

Pagination on single post page?

I've found many pagination tutorials/plugins that work on pages displaying a list of posts such as index.php E.g. - ...
2
votes
4answers
420 views

A way to detect which page a post is on

I'm wondering if there is a good way to tell which archive page a post came from. I essentially just need the post's position in the total order, then divide it by the 'posts_per_page' option. The ...
3
votes
1answer
2k views

Update post counts (published, draft, unattached) in admin interface

I am working on a multi-user WordPress setup and have made it so a particular type of user can only see and interact with posts, images, pages etc that they have authored. The code to make this happen ...
0
votes
1answer
379 views

Right align a youtube video

I'm trying to right align (class="alignright") a YouTube video AND allow my client to edit the surrounding text in the future using the visual editor. I simply added class="alignright" to the tag ...
1
vote
1answer
272 views

Update Post creation date when updated

I am wanting to be able to update a Post and have it show up on my home/main feed as if it were just posted. For example, if I had a Post titled "Roadmap" or "Planned Features", etc... and it was a ...
0
votes
2answers
2k views

Wordpress Query Posts From Category Post on Static Page

So I'm trying to query some posts from 1 category only and it does seem to be working. I tried get_post() also but no luck and after awhile I just caved and used query_posts (which is apparently bad ...
0
votes
2answers
447 views

how to display today's most viewed posts order by custom meta “views”

I wanna display today's most viewed post list ? order by custom meta = views Is it possible ?
0
votes
3answers
538 views

Get timestamp of latest post in C#

Is there a way to get the timestamp of the latest post in C#/.net? I am writing a control in ASP.NET for a intranet, which will alert users when a new post is posted in a wordpress blog.
0
votes
1answer
159 views

Keyboard shortcut for headings on safari

When I use wordpress on PC, I can simply press ctrl+1 for Heading1 and ctrl+2 for heading 2... But when I use my mac it doesn't work. What are the shortcuts for heading styles on safari?
1
vote
1answer
3k views

How to display related posts from same category?

Is it possible to display related posts from same category as the current post?
1
vote
1answer
2k views

How to display comments and comment form on custom post type?

Is it possible in wordpress to display comments and comment form on custom post type, and how to do that? Thanks in advance.
2
votes
2answers
3k views

Comments not showing in custom post type - Wordpress

I've created a custom post type, and i want to display and allow comments. I have this in function.php : // Add Custom Post Types add_action( 'init', 'thm_post_types' ); // Add Custom Post ...
7
votes
2answers
593 views

What's $object->filter for?

I keep seeing this pattern, and wonder what it's for, how WP uses it internally: if ( empty($post) ) { if ( isset($GLOBALS['post']) ) $_post = & $GLOBALS['post']; else ...
1
vote
2answers
1k views

Elegant way to include only published posts with get_objects_in_term()?

The obvious way is to iterate through the resulting array of IDs, get_post for each and test against post_status == 'publish'. But I wonder whether this could cause memory issues since get_post will ...
0
votes
3answers
139 views

First Custom Post Custom Fields Empty After New Custom Post

I am working on a theme which contains a custom post type with custom fields. Everything is working perfectly except the when a new custom post is added, the custom fields for the first custom post ...
1
vote
3answers
1k views

WordPress post tag & custom field

I have the site in WordPress where I used the custom fields, but now I want to use that custom field as post tag automatically. Can anyone have any idea? Thanks.
0
votes
1answer
73 views

What is the correct method for updating post content from a plugin?

I would like to create a plugin which updates the post's content in the Admin panel. For example, on the Edit post page, the user sees his draft content. If he clicks on a button from a meta box ...
0
votes
2answers
1k views

Display most recent post in category instead of archive?

I've successfully redirected my blog page to my most recent post - i.e. so when you click the 'blog' link in the nav it goes to the most recent post page and you can click next/prev buttons to ...
1
vote
3answers
2k views

WordPress Retrieve Post by Title

The following code works brilliantly for retrieving certain pages, but I can't get it to retrieve POSTS by name. I'd like exactly the same code, but to retrieve posts rather than pages. Any help ...
0
votes
1answer
1k views

Prevent 404 of Author pages without posts

How do I prevent author archives without posts from 404ing?
1
vote
1answer
317 views

Having trouble with the_post_thumbnail to display thumbnail with custom size

I have code that looks like this: $post_thumbnail = the_post_thumbnail( array ( $w, $h ) ); I want to know what I'm doing wrong. When I pass in values for width and height, Wordpress returns an ...
0
votes
1answer
574 views

Automatically delete default posts and pages on theme install?

Is there a way to automatically delete the default wordpress posts and pages when activating theme theme?
-1
votes
1answer
105 views

Does anyone have the Custom Post Permalinks plugin from John P. Bloch? [closed]

Can you upload it somewhere or send to my email?
0
votes
1answer
128 views

what template-part to call, to have my post in the center of the page?

i was wondering if you could help me : i would like to change the center of my page only with my posts : (all my posts will be in the same category) : how can i construct the page : so : 1.my menu ...
0
votes
1answer
2k views

add_action not using 'delete_post' action with wp_delete_post

I am using wp_delete_post function to delete the selected posts shown on the front-end (in my theme page). Posts are being deleted successfully. // delete all selected posts foreach( ...
-1
votes
2answers
90 views

How to list first (etc. 5) posts as new?

I am looking for a plugin or a way to list first five posts as new. It should be just a small picture added in the index.php. Any ideas of how I could achieve this? Thanks!
0
votes
1answer
212 views

Make 'Page' slug the 'index'

I want to have my Index page show posts from a certain Category ('news'). I have that functionality, but is there a way I can make a 'News' Page, where the slug just points to the index?
6
votes
1answer
7k views

How set featured posts using checkbox in post edit screen?

I want to make selecting a featured post is just by checking a checkbox in edit screen AND be able to retrieve these featured articles from only specific category ? in short what I'm looking for : ...
0
votes
3answers
47 views

Not displaying any articles on a custom made file

I have created the file latest.php in the public_html so that when I go to www.domain.com/latest.php it will show me the latest articles. Sadly, nothing of the posts came up. Later, I will sort them ...
3
votes
2answers
3k views

SQL query to extract only the “current” wp_posts?

The wp_posts table seems to retain all revisions of the same, ok very similar but presumably different, posts/pages/whatever. I'm somewhat conversant with SQL but not WordPress. I need to extract ...
0
votes
1answer
177 views

Highlighting Current Category in the Archive and Feeds page

I needed a category listing in my posts page and I want the current category to be highlighted. I enabled the 'All' category, so consequently, I want the 'All' also to be highlighted when I'm viewing ...
1
vote
2answers
2k views

Delete Post Link to delete post, its meta and attachments

I used // Delete Post Link function wp_delete_post_link($link = 'Delete This', $before = '', $after = '', $title="Move this item to the Trash", $cssClass="") { global $post; if ( ...
0
votes
1answer
298 views

Categories Listing and Highlighting current category item

My query is on Wordpress and related to categories. I have a set of categories for my posts: All, Cat-a, Cat-b and Cat-c. a. When I click on the link to my posts page, I want to show an archive for ...
2
votes
2answers
949 views

modify all posts of a category to “no comments allowed”

I'm looking for a way to modify all posts of a certain category to be "no comments allowed" without going into each post settings, one by one, and modifying manually. Perhaps a MySQL statement? ...
0
votes
1answer
778 views

Redirecting posts in Wordpress to a specific page

I created a page so that it would appear in my navigation menu. This page would however be my posts page (i.e. all posts would go here) and would also be my front page. I am unable to find anything ...
0
votes
1answer
665 views

User friendly news section in Wordpress without using posts

I have a website that has a news section which simply shows the most recent 6 posts with a category of news. The problem is that whenever you create a post, Wordpress automatically creates a page for ...
2
votes
1answer
257 views

Sort posts by newest child while keeping hierarchy intact

I have the following hierarchy within my wordpress posts (e.g.): -> Post 1 (pubdate: 2011-01-01) --> Post 5 (pubdate: 2011-01-02) ---> Post 6 (pubdate: 2011-01-03) ----> Post 7 ...
3
votes
3answers
2k views

How to publish a post with empty title and empty content?

Why I'm doing this you might ask? I'm developing a website for a business with a portfolio where the gallery items are posts. These posts are populated through custom fields and category selections, ...
0
votes
3answers
371 views

Custom feed parameters / Template overriding

Am relatively new to Wordpress development and looking for the best way to customize the output for a specific javascript app that will be pulling in the content dynamically, by using a Wordpress ...
0
votes
1answer
2k views

Get the ID of the latest post

Been all over looking for the best way to do this. I want to get the ID of the latest post of a certain post_type. How can I do this in the cheapest way possible (by cheapest I mean using the least ...
-1
votes
1answer
663 views

how to show all post with its contents

i have "favorite-film-video-songs-super-scene-climax" category and i want to show all of the post with contents(which is youtube video) for every post. in below link i want to show all post with ...
4
votes
1answer
391 views

Customizing HTML Editor Quicktags button to open a dialog for choosing insert options

I am looking for adding custom quicktag buttons,that would allow me to display a intermediary dialog before inserting the code. Situation 1) Clicking a quicktag button opens a dialog or thickbox ...
1
vote
1answer
616 views

How to change post to page

If I have to change a number of posts to pages, does this require anything more complex that setting the post-type to page on the table wp_posts? Do any other settings need to be changed. Is it ...