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
1answer
77 views

Security to delete post by Admin

My code is so simple like when admin delete a post by Wordpress fucntion (PHP) and do action with jQuery <?php include('../../../../../../wp-config.php'); if(current_user_can('edit_posts')){ $id = ...
0
votes
1answer
195 views

Custom Post Type archive

Hey all first off im a WP newbie so go easy! Ive been searching for a couple of days now to see if I can find the answer to this but cant get anything definitive. I have a custom post type called ...
0
votes
1answer
410 views

How can i list random post from multiple category?

I have an author page, and I want to list posts from current author's categories. e.g. I'm viewing John's page, and John wrote in Sport, Tech, News, Computer categories. Then my code list from this ...
1
vote
2answers
146 views

Is it possible to create a form post wordpress custom navigation link?

I work with a church that has a donate button on their site. The button uses a form post to connect with their simple checkout item and they want a button on the navigation to link to the donation ...
3
votes
1answer
159 views

Search widget breaks when using multiple loops?

I have created wordpress template that uses two loops via WP_Query object. Everything works fine except Search widget. I've been pulling my hairs out for three days now Googling like a madman,but ...
2
votes
1answer
243 views

Some posts returning 404 instead of displaying post

I'm having a problem with my Wordpress install. All of a sudden some of my posts return 404 errors when I try to go to their permalink. My post names are all numbers and this started happening when my ...
0
votes
1answer
825 views

how can i change WP main archives loop to sort by name or title

I've got the following code which i found somewhere else i use it for pagination. I don't understand all of it although I've read codex.wordpress.org/Class_Reference/WP_Query several times. they ...
0
votes
1answer
172 views

Multiple Blog Pages

some Preview Sites of WP Premium Themes show Multiple Blog pages with different Templates as example. a Full Width Blog Page a Medium Image Blog Page a Pinterest Style Blog Page. Now how do they do ...
0
votes
1answer
63 views

Disable sticky option for specific categories

Is there a way to disable the sticky option on posts in specific categories?
-1
votes
1answer
118 views

Notifications Bar on home page only

Is it possible to create an "Alert" button that can be turned on and off thru wp-admin. Of course the "Alert" button im asking for is to be published at the main page, but can only be turned on when ...
4
votes
3answers
525 views

Add tag to post api wordpress

I have been googling around but could not find the "add tag to post" api/codex. Does anyone know what it is ? Also, the "delete tag from post". Thanks.
2
votes
1answer
976 views

How can I hook into creating a new post and execute wp_die(), before the post is inserted into the database?

Info about wp_die from codex: Kill WordPress execution and display HTML message with error message. A call to this function complements the die() PHP function. The difference is that HTML will be ...
2
votes
1answer
89 views

How to display links in specific page

I have following links in content.php and i want to display in specific page with condition. Any ideas or suggestions? Thanks. Home Director’s speech Projects ...
0
votes
2answers
5k views

creating front end image uploader that uploads images as posts

there is this website lolhappens similar to 9gag. This is a website built over wordpress. How i am sure of this? check this link . Now to my best of knowledge this is a wordpress website where the ...
0
votes
2answers
152 views

Get a post's ID

How do I get a post's ID? I know I can use the_ID(), but I have to use it in The Loop. How can I get the post's ID without the loop? Because I think using the loop just to find the post's ID will slow ...
1
vote
1answer
189 views

Custom WP_Query with complex 'post_status' argument

I'm trying to run a WP_Query() with a bit of a twist. I need to include two post_statuses and specifically exclude another. I've got WP_Query( array( 'post_status' => array( 'publish', ...
1
vote
2answers
53 views

is there a better way of combining this?

Hoping someone can point me in the direction of writing this in a more succinct way. I'm working on my website, and want to display a total of 5 posts from the category 'general wonderings'. The ...
0
votes
2answers
47 views

1 post, 2 templates

I want to be able to render post in two different styles (2 templates). For example, let's say I have the post ID 133, I would like two URLS to access it and so it renders where different template ...
1
vote
1answer
445 views

remove post and categories/tags count from right now dashboard widget

I know it is easily possible to add a post-type count for a custom post type to the right now dashboard widget. However I wonder if it is also possible to remove stuff from this widget. E.g. I ...
0
votes
1answer
210 views

How can I sort posts by the date and a custom meta field?

I have custom meta field that I use for the post rating. So I want to display posts by the date and the rating, but only for the posts that have specific rating. For example, I want to display posts ...
0
votes
1answer
206 views

Change layout of post depending on category

I am having two kinds of categories one is events and another is no_category. Posts of Event Calendar are placed under events category and rest are in no_category. As you know what is the default ...
0
votes
1answer
390 views

Custom Post Title as search term

is there any way to include custom post title as search term. I create custom post types - VHS, DVD, Blu Ray. Then in search box when I write DVD I want to list all posts from custom post type DVD. ...
0
votes
1answer
60 views

Commenting on a post from the admin panel?

I'd like to create a Q&A-type forum for my wordpress site, where anyone can submit a question, and then the forum admin would answer the question and then post the question/answer combination. ...
0
votes
2answers
102 views

How to filter categories of a post

Is there any way to filter the categories of a post? I am using wp_get_post_categories( $post -> ID ); i want to filter this listing i.e. if(post_name or post_id == "some id or some name") {it ...
0
votes
2answers
192 views

Wordpress custom post type with folder structure in slug

I have setup a custom post type with the slug "interview" and it is working fine. I am trying to change the slug to "magazine/interview" but I keep getting 404 errors when I try to access the posts ...
0
votes
1answer
400 views

How to get posts published on the latest date?

Is there a way of getting all posts published on the latest date? It might not necessarily be today, it might be yesterday or the day before yesterday or even a day last week.
0
votes
1answer
80 views

Change places custom fields with title field in post wp-admin

Is it possible to make custom fields at the top, when writing a new post in admin panel ? Thank you.
0
votes
1answer
52 views

Insert specific information to a posts of a predefined category

I want to show some detail information on specific (for e.g. category=3) posts. Therefore I use the following coding: function postinfo_head() { global $post; $script = <<< EOF ...
0
votes
1answer
444 views

Create a frontpage.php and static page template

I am a little confused. Reading settings : 1) Front page -> Home -> Frontpage.php 2) Posts page -> News -> pages_news.php [this is custom page template :Pages Custom news ] From Pages: 3) Pages -> ...
0
votes
1answer
284 views

Single Post in Tab/Slider

I have managed to code tab system that fetches different categories and custom taxanomies on a home page and shows relative posts. Now, is it possible that when someone clicks on one of the posts in ...
0
votes
1answer
1k views

wpColorPicker - problem with implementation to post meta

I need your help as I am stuck and Google does not return anything, so I must be doing something obiusly wrong here, I just don't know what. Basically, I need color input in one of my custom post ...
0
votes
1answer
83 views

Making posts permalinks consistent numbers

I'm developing a new website, but I can't quite figure out a solution to my permalinks problem. My main website is http://w3spine.com, I'm sending posts to my second WP installation at ...
0
votes
1answer
164 views

Styling first post using Advanced Custom Fields

I'm working with a company's About page. I created a custom post type for "Employees", and am using the Advanced Custom Fields plugin to create simple meta boxes for name, title, image, and bio. The ...
0
votes
1answer
59 views

How to add a post class on every post. (on homepage)

I have this code in my home.php, the very first post class does not get the class while the others do. Same thing when i move this code to functions.php. I get php errors when i remove the hook around ...
0
votes
1answer
73 views

How to make posts being uncategorized

I have some posts which do not have any category, by default, wordpress shows them under "Un categorized". Is there any way to stop this? I want those posts under the categories I have in metabox ...
0
votes
1answer
57 views

Make division in post_query?

I am new to both PHP and WP so I am struggling with one thing: I want to fetch all my post and then order it according to my meta-value "_mycounter" divided with the date in seconds from 1970 or what ...
1
vote
2answers
2k views

Posts are being redirected to xampp home page

I have a wordpress site, I downloaded it from live and configured it on local using xampp. When i click on any post, it redirects me to localhost/xampp instead of post page my .htaccess is like ...
0
votes
2answers
1k views

WP 3.5 - How to remove permalink from images

In previous versions of WP, we were able to remove permalink from images while we were inserting images into post. But, now there is no obvious option to do so. How can it be achieved? Thanks.
0
votes
2answers
83 views

How to create a template for Pages?

In Wordpress, when creating a page, it shows some options for Template under Attributes, such as: Default, Links, One column no sidebar, etc. Is there a way to add more custom templates to show up ...
1
vote
2answers
692 views

Limit the post for differents custom post type in the same wp_query

I have three custom post type: books magazine videos Now i want to limit the number of post for custom post type, for example: books => 3 post magazine => 2 post videos => 1 post I used a ...
1
vote
2answers
2k views

Errors when uploading images in WP 3.5

I'm trying to upload images in WP 3.5 to set featured images for posts. Unfortunately I get the following error message: An error occurred in the upload. Please try again later. The installed ...
0
votes
1answer
53 views

Using Posts Like a Page

I'm working on a client project and they would like to use posts much like we would traditionally use pages due to there being a limited number of pages one WordPress install can handle and the ...
-2
votes
1answer
287 views

How to get an error message if a form is empty (plugin: Post for site) [closed]

I wonder if you intelligent friends can detect the problem in this code. I want the form to display an error message if it's empty. Now it just goes to my completed form page. <?php /* * * * ...
1
vote
1answer
177 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
332 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
578 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
281 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 ...