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

How does Wordpress add the comments and comment form to posts

I have created tabs in my single.php file. I would like to move my comments from the bottom of the posts to the comments tab. I have can't seem to find how to do this. I have copied everything from ...
3
votes
2answers
51 views

post__in for get_posts with a dynamic array

I am creating an RSS feed. I have created a table in my database with 400 post id's. I have the rss feed coded I am now trying to link the two so my RSS feed runs only for the list of 400 posts from ...
0
votes
0answers
11 views

How to add New Post On clicking a button?

I have a custom post type name guide_tutorial.As I add new post It creates a button name Add Pointer.On clicking the Add pointer button its open a popup which have details about pointer .Now I want ...
0
votes
1answer
535 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, ...
0
votes
0answers
12 views

Why are all posts older than a certain date missing from filtered Post lists in wp-admin?

I'm experiencing a strange issue where all posts older than a certain (seemingly arbitrary) date do not show up in the Posts manager, but only when looking at a filtered view (by post format, ...
0
votes
1answer
23 views

Get posts and include taxonomy term

How can I return taxonomy terms within post data, from the same query. Currently I'm calling get_posts / wp_query and then looping over and calling wp_get_post_terms. Needless to say it thrashes the ...
0
votes
0answers
19 views

Carousel with 4 Items per Slide | Custom Post Types | Bootstrap

I am struggling with the Carousel Items - I want to show up 4 Items (custom posts) per slide. What did I wrong? And the other slides (slide1 and slide2) should only be displayed if so many post types ...
0
votes
1answer
23 views

After ajax image is outside the `<a>` tag

I am loading some content via AJAX, and basically I have this line: $storage .= '<a href='.get_permalink($id).'><img src="'.$image['url'].'" /></a>'; Which gets rendered as: ...
2
votes
4answers
4k 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
21 views

get_object_taxonomies() returns null for custom post type

can any body tell me what will be the issue in function get_object_taxonomies() which returns null for custom post type..... the function is given as function insert_city($term) { echo ...
2
votes
1answer
684 views

Invalid Post Type error when attempting to filter and Bulk Edit posts

WP 3.8.1 Posts Categories: News 1.1 Press Release 1.2 etc. Blog 2.1 Technology 2.2 Around The World 2.3 Eetc. "Invalid Post Type" example: Posts => Filter by "Press Release" + checkmark ALL + ...
-4
votes
1answer
9 views

Modifying 'post_content' on 'wp_posts' but post not getting updated [on hold]

I had to make some changes in some of my wordpress posts and I thought about making them directly on the database. I opened phpMyAdmind and I went to 'wp_posts' and found one of the posts, clicked ...
0
votes
0answers
24 views

Is there a global page/post/product/anything ID?

I am working on compression plugin and need to save compressed styles in to a file. Compression process is done but I need a unique page ID for any WP page in order to save and name the compressed ...
0
votes
1answer
426 views

Using AJAX and PHP to load next post object

After looking through the jQuery documentation and many stackexchange community forums, I am still faced with this problem. Taking little bits from here and there have helped me get this far, but I ...
1
vote
2answers
435 views

generate unique slug while inserting post

How can i create unique slug while inserting a new post.. I know i can query posts and compare the records to create unique slug but I want to insert a post with unique slug at the same time. Lets ...
0
votes
1answer
825 views

Sort All Posts by Category Name in the Admin Panel?

I'm working on a pretty complicated site where everything is managed by category type including automatic spinner image submission, etc.. Unfortunately, its doggone difficult to manage things when the ...
0
votes
1answer
598 views

Custom Wordpress Theme: Publish Date and Display Date for posts right beside each other

What's currently happening is that for posts that have an 'update' time, the original publish and editor dates are rendering side by side (with no extra information in between, or even a space for ...
-4
votes
0answers
36 views

Creating a List of Posts With the Same Categories as the Current One

I edited my question now to give you a full overview. First of all, I am using Custom Post UI Plugin. I created a Custom Post with the name 'guides'. To display the Post, I have created a php file ...
0
votes
1answer
8 views

How do I create a 'selection' criteria list' that will then dictate which posts are generated when the user presses search?

I'm very new to WordPress so please bear with me! I'm currently in the process of building a site for work. Our 'vision' is that we have three lists of options. People would select one option from ...
0
votes
1answer
735 views

Displaying the category name of a custom post type

So I have a custom query, in which I'm displaying some results posts of a custom post type called "staff". This custom post type is linked to a custom taxonomy called "department". I am able to ...
-1
votes
1answer
425 views

Multiple authors for single post without plugin

I'm new to using WordPress and so, apologies in advance if this seems like a very basic question. I want to have multiple authors for single post. I had seen Co-Author. But I don't have to use plugin ...
0
votes
0answers
8 views

How to set the template of a page created via plugin with template inside plugin

I've been trying to make a plugin that creates a couple of pages and then sets their template. This issue is that I have the templates inside the plugin. To create the pages I'm using: $post = ...
3
votes
4answers
188 views

Limit widget to a specific registered sidebar

I have a widget I want only allowed to be used with the single.php sidebar. When I referenced the codex for register sidebar there isn't a way to limit widgets in the array. I've researched with ...
0
votes
0answers
9 views

Multiple tags to create an RSS feed not working as docs describe

I'm trying to create an RSS feed that is based off of AND not OR with tags. In the codex https://codex.wordpress.org/WordPress_Feeds it says that you can use the format: ...
0
votes
1answer
16 views

I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish

I am creating a front end dashboard where I need to show all the posts by the current user. So, I need to show posts in publish $post_status = 'draft'; i would like to use publish. what should i do ...
-6
votes
1answer
33 views

How can I add “table of contents” in any post? [closed]

I want to add content menu in any post like Wikipedia Is there any built-in tool for this job, Or should I add it manually?
1
vote
2answers
499 views

Issue where WP Featured Image will not display

The code I'm using, is outside of WordPress i.e. define('WP_USE_THEMES', false); require('blog/wp-blog-header.php'); global $wpdb; The code that I'm trying to display the post thumbnail (the ...
1
vote
0answers
19 views

Posts and Attachments with “Published” status in Search

I would like the search to show only published posts and attachments (the attachments are photographs taken directly from the media library). The trouble is, when I specify that the post_status must ...
0
votes
1answer
1k 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 ...
-1
votes
2answers
29 views

How to find the page of specific post?

i have a specific post and i have a website (example.com) that have pagination 1, 2, 3, ... what is the page of my mentioned post in this pagination. for example is it example.com/page/5 or 6 or etc. ...
0
votes
2answers
532 views

HTML Inside of Shortcode Breaks Shortcode Output

Lots of Googling has still not yielded a solution. Here is the problem: I have created a custom Wordpress shortcode to use inside my Thesis theme. The goal of the shortcode is to allow users to wrap ...
1
vote
1answer
540 views

page.php showing loop of posts and not page content

My front page displays the latest posts using index.php. My page.php contains the wp_header up top, the wp_footer below, and this in between: while (have_posts()) : the_post(); ...
0
votes
2answers
47 views

How I can made a custom post type to page templates?

In my site, I created a custom post type called: "Pictures" add_action( 'init', 'create_post_type' ); function create_post_type() { register_post_type( 'Pictures', array( 'labels' => ...
0
votes
1answer
441 views

How to get all inline images in post content?

I want to get all inline images in the post content. The get_children() method doesn't work for me because they could add the same photo twice. Also this only gets "attached" images, and they could ...
0
votes
3answers
1k views

Password-protected Posts lead to 404 Error

I was just testing the password-protected posts functionality and when I submit the password it sends me to a 404 page. The password I typed in was correct, I made sure. The URL bar says: ...
1
vote
3answers
372 views

Add default content to post (for specific category)

I'm trying to add some default content to my posts using this code in my functions.php: add_filter( 'default_content', 'my_editor_content' ); function my_editor_content( $content ) { $content = "My ...
1
vote
4answers
3k views

How to wrap every image in a post with a div?

When I add an image to a post I want it to be in a div e.g. , and I want that to be done automatically, so I don't have to do that in HTML editor. I don't want to use js to accomplish this and by the ...
1
vote
1answer
1k views

Using radio button meta data from a custom meta box

Very new to attempting PHP and am hacking together my first plugin using tutorials.. I have a custom meta box with a Yes/No radio button on all WordPress pages (in the editor). EDIT- I removed the ...
2
votes
2answers
1k views

Wordpress Child Category Display All Posts

I am creating a Wordpress page where all my posts in the child categories of team are displayed in a grid. I got this working with the below code. The formatting and general layout is great however it ...
0
votes
1answer
548 views

Hiding posts - WP Hide Post not working

I frequently publish posts that I need to be hidden. They need to be published, so that someone who has their url can go to them, but I don't want them showing up on my homepage, in my recent posts ...
0
votes
0answers
16 views

Compare two posts by taxonomies

I have posts written about products without plugins but each product post has the same taxonomy same meta and same heading font size for each section for example : Product name: Product1 Price: XXX ...
0
votes
1answer
824 views

How to remove specific tag from multiple posts?

I am trying to find a method to delete a certain tag, that is used in my theme to display differently "featured" and "dont-miss" posts, from multiple posts and I was not able to find a solution. Or ...
0
votes
0answers
21 views

Can not be able to insert the custom post taxonomy

here is my code in which i can't get insert the term in custom post type taxonomy .as in the the code in wp_insert_term($term,$taxonomy,$args); cannot work , while it is working if i put a string ...
0
votes
0answers
8 views

When add new custom post then automatically create category same postname [on hold]

i'm using cpt ui plugin .i'm create a Post Types and Taxonomies registered by Custom Post Type UI. in this register post add new then automatically added to category not create manually create ...
1
vote
2answers
735 views

Underscores.me retrieve next / previous post thumbnail in post_nav function

I am using Underscores.me for a project. I'd like to add the featured image (thumbnail) to the previous / next post links. They have a function which I'm trying to edit called THEMENAME_post_nav(). I ...
0
votes
1answer
32 views

Wordpress each user has each content for a page,how to do that?

I am a newer of PHP language,I have a project of user system,that need each user has each different content,I place the content to a page,when user login,open this page will display that content.To do ...
-3
votes
1answer
26 views

How to get Recent post id

By using following code global $post; echo $post_id; I'll get the post id. how do i get recent posted id?? I have tried this also echo $id = get_the_id(); I have tried googling am not getting ...
1
vote
1answer
1k 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 ...
0
votes
1answer
550 views

wp_update_post creating revisions instead of updating the post

I have been trying to update a post in the posts table but for some reason, it is creating a multiple number of revisions but not updating the main post. I have been trying hard for the last one day ...
0
votes
2answers
920 views

Insert data from custom created PHP page into wp_postmeta table

I am working with a Wordpress site and have created a custom page in /home/planmyme/public_html/php/ with the name response.php. On this page I am getting a value to insert in the wp_postmeta table ...