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
421 views

edit_form_after_editor only in post edit pages

I want to show some information in post edit screen. I found 2 hooks which allow to do this after title or after editor. Heres code with second one: add_action( 'edit_form_after_editor', '...
0
votes
0answers
48 views

Posts being replaced/deleted

As far as I know this is not theme specific, but something which has just started going weird on my WP site. I'm asking for advice on what could cause this problem. I've set up a site using this ...
0
votes
2answers
116 views

Make assigning post to a specific category equivalent to assigning it to all categories

Allow me to explain with an example, for the sake of clarity. Please take the time to read it all to get a good idea of what I am exactly after. On my WordPress site categories are used as Editions ...
0
votes
1answer
238 views

How to store post rating system data post independent?

There's code below for simple post rating system (tutorial from this site TUTORIAL ) - it works fine but i need to change it a bit. Now where user votes, he is not able to vote again for same post for ...
0
votes
3answers
450 views

How do I insert a post with custom post type and relate it to a custom taxonomy?

I'm trying to figure out how to insert a new post. I have a custom post-type (course) that is related to a custom taxonomy (categorycourses). I've managed to insert a post with custom post type ...
1
vote
1answer
337 views

How do I use WP_Query to get a range of posts with custom fields that have numbers with letters in them?

What I'm trying to do I am using WP_Query() to get posts based on their range for example: $args = array( 'numberposts' => -1, 'post_type' => 'page', 'posts_per_page' => -1, ...
-2
votes
2answers
2k views

Show post titles only on the homepage

Is there any way to show a list of all posts without any preview of the content on the homepage?
0
votes
0answers
53 views

In a page I need to display posts “standard” and post “videos” with post formats

I have created a filter to display "standard" posts in a page by selecting category and it works well but it deletes "video" posts. I need to create another filter to display the "video" posts from ...
0
votes
1answer
302 views

Send POST request to Wordpress to make a new post

I want to make new posts on my Wordpress blog using HTTP POST sent to post.php. I was searching for the parameters I should pass but i didn't find any useful information yet. Can anyone give me a ...
0
votes
0answers
146 views

Retina for Wordpress Posts

I was checking one of the answers here, and it says: Just create the copies of images with double size using wordpress native media settings. And then add the following code in your templates. ...
0
votes
0answers
82 views

delete custom post type using a submit form

here i'm trying on submitting to delete the post in process.. i've tried without the hidden input aswell as doing the if isset on the redirecting page when form's submit. all 3 ways failed. if(isset(...
1
vote
1answer
267 views

Retain select value in select box

How are you all. I am just struggling to make my custom select box keep retain select value in form when page is reload or user come on form via different navigation. my select box is: <?php ...
0
votes
1answer
165 views

Users cannot post when editor or admin on more than 1 site on multisite

Just upgraded to 3.6.1 last week. I have rolled back and re-upgraded 2 times. When I roll back everything works. I've Turned off plugins, changed to 2012 theme. Tried 3.7 with same issues. Users can ...
0
votes
1answer
530 views

Strategy for handling hierarchical pages with empty parent content

Let assume I have the following page structure /about-us (used as a parent holder only) /about-us/history (real page) /about-us/team (real page) /about-us/industry (real page) There is no content ...
2
votes
0answers
66 views

CPT's archive and single page not working [closed]

I created a custom post type function faq_func() { $labels = array( 'name' => _x( 'FAQs', 'Post Type General Name', 'rrrrr' ), 'singular_name' => _x( 'FAQ', 'Post ...
2
votes
1answer
360 views

Limit number of posts a user can make per minute?

So I found the solution to limiting a number of posts a user can make per day but not per minute. Here's an excerpt from the code I found on http://wordpress.org/support/topic/limit-the-number-of-...
4
votes
1answer
2k views

rewind_posts() - what actually the use of it, and where using is required or preferred?

The incomplete Codex about this, says very simply: rewind_posts(): Rewind the loop posts. As per this WPSE thread, with Eugene Manuilov's answer, I got: <?php // fetch first post from the ...
-1
votes
2answers
99 views

get value from post to sidebar

I have the following div in my post, <div class="my_calss" id="my_id"> my content </div> Here, my_id is different for each post. I need to display my_id in sidebar into php code. ...
0
votes
1answer
169 views

How to link two news page multilingual press

I have two sites one in English and one in Finnish I have post page for English as News and Finnish as Uutiset I was able to link single news posts from news to uutiset and vice versa but when I ...
0
votes
0answers
22 views

Self-installed WP: blog posts not appearing on homepage

I run the website for our company. I'm not a programmer. It's a small two-person company, so I basically have to do it alone. We're changing to a new server host soon, so I tried backing up and ...
1
vote
2answers
87 views

Post-ID in url differs from $post->ID

I've got a page with a blogroll in the left column and a sidbar in the right one. When I try to retrieve the page-id inside of the sidebar like: echo $post->ID; echo get_the_ID(); The result is ...
1
vote
0answers
104 views

Query posts and return XML

Here is the short and sweet of what I am hoping to do. I would like to have a way for external websites to query mine using a game title and they would get an XML back that contains the text of the ...
-1
votes
1answer
3k views

List only child categories a post is in, of a specific parent category

Either this is harder than it needs to be or I am just not understanding WordPress/PHP very well :( All I want to do is show the child/sub categories of a specific parent category...but only if the ...
0
votes
1answer
46 views

How to Featured content with images in home page?

Today i saw a WordPress blog which is using Featured Articles in its home page. can any one tell me how to add that code manually to my blog only in home page. Here is the screen shot and blog url ...
0
votes
1answer
54 views

How to check whether a post exceeds 300 words

I need to check whether a post exceeds 300 words or not. If it exceeds 300 words, then I have to provide a link to read more about the post.How can I do it? Please help me.I am new to word press.
2
votes
1answer
4k views

Set posts of a custom post type to be private by default?

Say I created a custom post type called 'Private Posts' ($post_type = itsme_private_posts) and want all posts under the custom post type to be set to 'Private' automatically when published i.e. by ...
0
votes
1answer
284 views

Displaying different posts Via wp_list_categories()

I believe this problem to be quite simple but can't seem to get my head around how to solve it. So I'm pulling in all the category with posts in using wp_list_categories(); My problem is when I ...
0
votes
0answers
175 views

Update Post with Modified Data

Task is to take class from <pre class="php"></pre>, and add that class to <code></code> and wrap all content of <pre> into <code> after that. I am querying WP with ...
-1
votes
1answer
234 views

Cannot Create a new Post

Please help me resolving the issue as I am getting 404 Page not found issue when I click on Create new Post.
1
vote
1answer
96 views

Posts are deleted everyday at night

So I have a weird issue with WP and that is that all Posts on the site are getting deleted sometime in the night. Before I turn of all plugins and change theme to default.. I would like to know if ...
1
vote
1answer
401 views

create parent post using wp_insert_post

how can i create php function where i can create a post in one custom post type also create a child post type, i have already create a parent post type, i.e post type "a = car" post type "b = user" ...
1
vote
3answers
3k views

Post/Page Publish/Update button not clickable once I make an edit

I open a page and make an edit and the update button becomes grayed out. I have to copy all page content, refresh the page and paste it back in the page, only then does the update button become ...
0
votes
0answers
67 views

How to Batch Upload .docx Files as Posts

I need to upload all the articles from our school newspaper to our website at once. They all need to publish at a specified date at a specified time and all of them have authors (users) and an image ...
0
votes
1answer
118 views

How to mix pages and sub-categories in a url

I have a series of products which are organized into categories like: Windows Product Lines Specific Window type post Initially I created a page (/windows) which links to the individual ...
0
votes
1answer
574 views

Taxonomy Category category.php not working

I have created custom post type, taxonomy and categorys. When viewing the category it seems to be using index.php and ignoring the WordPress template hierarchy. Any ideas why category.php, category-{...
0
votes
1answer
897 views

Get latest author posts inside the loop

I have a wordpress theme which needs to retrieve the latest 3 author posts which is simply straight forward but I have ran into a sticky problem. Because I am calling this from already within the: ...
1
vote
1answer
24 views

A friend wants to make a comment on one of my articles, she has to be logged to wordpress?

I have a friend, she does not have a blog or uses WordPress, she wants to drop a comment on one of my articles. Does she has to open a WordPress account? The blog demands a password to drop a comment?
0
votes
2answers
609 views

2 dynamic sidebars registered, not showing up

My intention is to have a left and right sidebar on each page. I've registered both of them, implemented my desired widgets, and yet something isn't quite right. The left sidebar (sidebar(1)) loads ...
1
vote
2answers
859 views

Sticky post appears twice

I am trying to modify the number of posts_per_page in the loop. This way: function posts_per_page($query) { $query->query_vars['posts_per_page'] = 3; } add_filter('pre_get_posts', '...
0
votes
1answer
39 views

Tags not appearing in “Add New Post” Page

I'm working on a mag website. I'm using Tags to group some content. For this I have added all the required tags from the Tags section under Posts. But When I go to Posts -> Add New, the Tags panel ...
2
votes
1answer
771 views

Allowing the SoundCloud player to appear in a post excerpt

I am setting up a website for my music, in conjunction with my SoundCloud account. I plan to post the links to my soundcloud player as blog posts, but I can't figure out how to make the blog excerpts ...
0
votes
1answer
691 views

Notification to Admin or Author upon new post [duplicate]

I am using a custom function with 'publish_post' hook for a notification to the author when the post has been published but the issue I am facing right now is that the notification is being sent out ...
3
votes
2answers
1k views

How to allow hidden custom fields to be added from wp-admin/post.php?

I know that using an underscore in front of a custom field name hides it from display on the front-end, e.g. _custom_field_name. In my experience, WordPress also prevents one from adding such a custom ...
0
votes
0answers
80 views

get specific post_type from blog1 in multiste

okay this is the situation I have a coupon site with more than 2000 coupons already, now i want to display them on a second domain within my multisite setup. Therefore i need the second domain to ...
1
vote
1answer
876 views

Get random posts between specific dates / of specific age

I need to get post IDs from a custom post type randomly and the posts are posted within 30 days. But I can't really find a solution. How can I do it? This is my query. query_posts("post_type='...
0
votes
2answers
381 views

How to make the home screen of my blog not show full posts?

I recently set up my blog and on the home screen, the full blog posts are shown. Is there a way to cut off the blog posts at some point in the text? As it is now, my home screen is extremely long with ...
0
votes
1answer
117 views

Multiple loops on a Search result page?

I have a custom template that displays search results based on a plugin. The wp_query contains all the taxonomy information to show the proper posts. How can I have two loops on the same results page?...
1
vote
1answer
1k views

custom single.php not working

Trying to solve this issue for the past hour and I can't figure out what's going on. Trying to create single-blog.php (I have a few posts which are under the category 'blog') but Wordpress ...
1
vote
1answer
699 views

Creating a post from data returned from HTML form

I am trying to write a WordPress plugin and I have hit a bump. The Background: I have some data in a mySQL DB that I am using (each row has a unique ID and some other information I have added). I am ...
-1
votes
1answer
650 views

Insert Shortcode exactly at the end of the content

<?php echo do_shortcode("[sharethis]"); ?> <?php wp_related_posts()?> There are 2 short codes above 1) share this plugin short code 2) related posts short code now my ...