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

Archive Page for Custom Post Type is not Working

I have registered a custom post type "tutorials" with the following snippet. <?php /* Template Name: Tutorial Archive */ get_header(); ?> <div id="content"> <div ...
0
votes
1answer
12 views

Different structure/content for posts from a custom post type

I've a CPT: Services and created two posts underneath it. Now, both those posts have some static content which is different in structure and design from each other. How do I place that content in my ...
1
vote
3answers
296 views

Problem excluding category from get_next_post

I have a custom post type called "exhibitions" that uses the native "category" taxonomy. I have three categories: Current, Past, and Featured. Posts get marked either Current or Past and some are also ...
1
vote
2answers
9k views

How to get posts published between a date and today?

Is it a way to get posts published between a date and today with query_posts() ? Example : All posts published since 2012-04-01 Thanks EDIT : How to add the filter date on this Query Posts ? ...
0
votes
0answers
11 views

display-posts shortcode attributes have no effect

I need to list some specific posts on a page. I discovered the [display-posts] shortcode feature but it doesn't seem to work. Here's what I'm trying to do: [display-posts posts_per_page="2"] ...
0
votes
2answers
521 views

Action hook for new pending posts?

I'm looking for an action hook to link my function to when a completely new post is created with a status of pending? I'm aware of 'save_post' and others but want to target specifically when a post ...
0
votes
1answer
301 views

When using Tribe Events Calendar, querying for a specific event category returns nothing

I'm still new to wordpress and I'm trying to write a plugin but for some reason this code is producing nothing. Why? I am completely stumped. I have followed the examples here to a tee. <?php ...
4
votes
1answer
364 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
28 views

List children on child post

I have a custom post type with children posts. If I'm viewing one of the children post how can I list other children posts that uses the same parent?
0
votes
1answer
30 views

Which PHP files should I edit for changing POSTS list and view pages?

Iam totally new to WP but now I got a situation to integrate blog in my magento store for that Iam using WP-Blog now I need to edit blogs posts List page and posts view page I want o do this by ...
1
vote
1answer
833 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 ...
0
votes
2answers
419 views

How do I display the post_title with get_permalink?

I want to display the post title instead of the link to it with get_permalink. get_permalink($comment->comment_post_ID) only shows the link to the post!
3
votes
1answer
68 views
+50

Add role that restricts user to post in specific category

I'm trying to create a role that restricts the ability to post to a specific category, hiding the other from the checkbox. I don't want to use plugins. I'm looking for a snippet to put in ...
0
votes
0answers
9 views

Will be the posts over writen according to the posts' ID when I import from an old site using XML file?

I have a site now and it has 350 posts. (Let's call is New site) I have another site which has 500 posts (Let's call is Old site) Now I am in a need of importing the all posts (500) from my old site ...
0
votes
0answers
3 views

How to update or recreate WordPress post_name slugs based on a new post_title? [duplicate]

WordPress wp_posts table that is stored in my WordPress MySQL database has post_title and post_name columns. I needed to recreate post_name column for all posts based on updated post title values. I ...
0
votes
1answer
23 views

List all posts in taxonomy term

I have a custom post type called anime and a taxonomy called series. If I view any post and that post belongs term Banana it should list all the posts in term Banana in a dropdown list. Here's the ...
0
votes
0answers
14 views

Auto create child post from custom field?

I have a custom post type that has 3 custom fields. If I create a post with data filled in those 3 custom fields I want it to auto create child posts for each custom field & using the data from ...
0
votes
0answers
12 views

Show current portfolio item in related posts

I have a portfolio with a single category > "Work" and in that category I have 3 portfolio items: Exhibition, Music, Posters. I am using the BeTheme template and I have the related post function ...
2
votes
1answer
31 views

Append a <!--nextpage--> to every post to force additional page link (and static content)

I'm trying to affect either the content or the $post->post_content directly, before the post get read by the wp_link_pages() function, to inject a little bit of static text or javascript after the ...
3
votes
1answer
293 views

Change post format using custom field

I'm creating a theme using the CF Post Formats plugin. But I've run into some trouble I don't know how to solve. Here's what I want to be able to do: Create a new standard-format post Enter a url ...
0
votes
1answer
28 views

Hide first blog post in content and output it in widget

I am working on a theme and want to hide the first blog post and instead output it at a custom widget position. For that I created a variable in the functions.php called $postCounter. I accessed ...
0
votes
2answers
53 views

query_posts different amount of posts per page

I have a posts_per_page query to paginate multiple post types, which works great! Now though, as it paginates it to show (in this case) 100 posts per page, I'm wondering if you can show 100 on page ...
0
votes
2answers
320 views

Display post category in foreach loop with category link

I have the following code to show current author post lists with post thumbnail, post title, post date and post category. function my_get_display_author_posts() { global $authordata, $post; ...
2
votes
3answers
415 views

Dynamically add id to heading tags

How do I add an id attribute dynamically to every heading tag on a wordpress website using php? I wanted to make it so that for every heading tag (h1, h2, h3, h4, h5, h6) I have a unique id attached ...
-1
votes
1answer
24 views

Displaying posts content inside a page [closed]

I have a problem when I am trying to view the posts content inside a page When I click on the post title, the WP retrieving the Homepage content inside the page of posts
-1
votes
1answer
18 views

Show Posts by Price Plan [closed]

I have made a website on wordpress. There is registraton of any user by choosing Price Plan which is i am going to describe as follows:- Premium Blog Posting - $90 (90 Blogs Per Month) Featured Blog ...
0
votes
1answer
22 views

Shortcode and whitespace formatting problem

I'm having a problem with shortcodes on a website, currently you enter a shortcode in the post edit screen like the following: [tab name=Itinerary] This will output a tab such as: However as ...
3
votes
1answer
803 views

Connection lost. Saving has been disabled… (Updating Posts/Pages)

I've been developing for Wordpress for a few years now without any trouble on an old XP/WAMP development server (v1.7.4) but recently have been getting the error "Connection lost. Saving has been ...
0
votes
0answers
21 views

Recipe Plugin Options

I currently run a recipe blog which just uses standard posts for recipes. I tend to have a few pictures and a short description before the 'Read More' line, then the rest of the data ...
1
vote
1answer
482 views
0
votes
0answers
28 views

Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?

The wordpress theme I'm using uses a custom post type called 'coupon' and a custom taxonomy called 'store'. The default permalink structure for a coupon post is site.com/coupon/CouponPost I would ...
0
votes
1answer
21 views

Wrong post title displayed from loop

I'm building my own theme. I have a page set for my blog (with a template that I made) which I'd like to just display a few of my posts. It uses the following loop: <?php ...
5
votes
3answers
763 views

How can I make it so the Add New Post page has Visibility set to Private by default?

I'm trying to create a plugin that alters the Add New Post page so the Visibility field says "Private" by default: Status: Draft Visibility: **Private** Publish immediately [Publish] ...as opposed ...
0
votes
0answers
13 views

using slug instead of ID in admin edit post url

In Admin, is there any way to use a slug instead of a post ID# within the url that takes you to a post's edit screen. So instead of: http://mysite.com/wp-admin/post.php?post=5562&action=edit ...
-1
votes
1answer
20 views

Wrap posts from a category in HTML

I want to get multiple posts content from a particular category. I would also like to wrap each post around some HTML. Any ideas on how to best do this?
0
votes
1answer
482 views

Automatically search and replace link in content (pages/posts)?

The users of my site mainly share documents by inserting links into content (pages/posts) using the built in editor. These files include everything from pdfs to word documents. The users currently ...
0
votes
2answers
26 views

Hide thumbnail if there is a gallery on the post

In a post I want to always show one of two options- If the post has nothing but a thumbnail image show the thumbnail. If the post has both the thumbnail and a gallery then show the only gallery ...
0
votes
1answer
270 views

Remove Featured Image from posts in specific category?

I am building a theme that includes the featured image as a navigation feature outside the single post, but once the user gets to the post in category "Specials", I'd like to take that image away. ...
0
votes
0answers
62 views

Get url/link to latest comments in a post

I have a post list in WordPress where people can see the most recently commented posts. They will appear above the list. That's fine, but now, I have 300 comments on the same posts and I don't want ...
1
vote
3answers
2k views

Loading post content in FancyBox

I got a tricky question. I have created a custom post type whose posts I would like to display in a scrolling carousel. The carousel will only display the title, the excerpt and a "read more" button. ...
0
votes
1answer
27 views

Custom template for different post types

I'm struggling to get my head around the correct terminology for posts/templates etc which is making it difficult to find what I'm looking for in Google/on here. Basically, I'd like a user to be able ...
1
vote
1answer
95 views

post_row_actions for custom post type

I'm using this code to have a duplicate post function in WordPress Admin. However, when I add the filter for a custom post type, like this: add_filter( 'directory_row_actions', ...
-3
votes
0answers
12 views

why on twenty thirteen site my comments (not posts) do not show last 10 first?

Is it possible for the site I work on: elcosito.com to show the last 10 comments (not posts) on the front page at all times? Right not it shows what I post: 1-10 comments, when I post number 11, it ...
0
votes
0answers
4 views

migrate first image of every post into featured image

I have an existing WP 4.0.1 with around 150 posts. All of them start with an image embeded within the html body which looks like this: <h4><img class="aligncenter size-full wp-image-????" ...
1
vote
1answer
485 views

How can a guest view the “Pending Review” Post?

When a user creates a new post it will have "pending" status. So I want the visitor (guest - not logged user) to be able to view "Pending" posts and vote it to "Publish" if enough "X Votes". Google ...
1
vote
3answers
2k views

Wordpress removing <p> tags?

I'd already come across a case where Wordpress added <p> tags. However now I'm dealing with the opposite situation. When I add [] shortcodes inside <p> tags WordPress automatically removes ...
0
votes
0answers
14 views

Ajax WP_List_Table in Admin Edit Post Page

I need to show a WP_List_Table with a list of custom posts types inside the post edit page. I followed the instructions at this link. The ajax part works fine, but now I have a problem when I try to ...
0
votes
1answer
20 views

How to make related post order by random?

I purchased a theme which had a related post functionality, but it sorts by latest so all the my post in the same category have the same related post content. I would like this set to random but dont ...
0
votes
1answer
40 views

How to add add more properties to WP_Post object in search results loop

I am using a plugin called Event Organiser, and it seems that it will only append its custom properties to the post object for all other instances of the WordPress loop except the search. Is there a ...
0
votes
2answers
30 views

Get custom post type parent category

I'm creating a custom post type like this: function btp_work_register_post_type() { $args = array( 'label' => __('Works', 'btp_theme'), 'labels' => array( ...