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

How to get posts by multiple post slugs?

i am trying to get posts by multiple posts slugs, i can do this by passing post ids but I do not want to pass post ids i am looking for posts slug Here is my code $option = array( 'posts_per_page' ...
0
votes
2answers
15 views

Which URL to enter into browser to show all posts in archive.php?

Consider the simplest archive.php possible: <?php get_header(); while ( have_posts() ) { the_post(); the_title(); } get_footer(); What address should I type into the browser to get to ...
-2
votes
0answers
6 views

Custom navigation in custom post type [on hold]

I'm working on a site that is basically a single page site, but with product details. It's based on the Sydney theme. Each product that is shown in the portfolio is a custom post type. When you click ...
0
votes
2answers
18 views

Creating Ordered Query using Meta_key

I've hit a massive roadblock that I've been stuck on for days now, hope someone can help with this. The problem: I have a custom field called order_value with the values road, air and bus. I am ...
-1
votes
0answers
18 views

post thumbnail 150 x 150 only

By calling <?php the_post_thumbnail('thumbnail');?> I needed an outcome like this http://www.smaplesite.net/siteimage/vc-site-150x150.png but my site showing the original image ...
0
votes
0answers
9 views

How to Add 'Post Categories' to the Dashboard Sidebar

I'm currently working with a company to make a few basic tweeks to their WordPress site and I noticed that they have this on their sidebar: I am looking particularly at the "Clients", "Offers", ...
0
votes
0answers
10 views

Linking Page, Posts & Category together

I want to create a page named Works with the built-in template called Project Listing. And have to make individual posts in the page Works. However, I am not able to do it. Though I can create the ...
0
votes
1answer
31 views

How to get post with slug and exclude categories

I want to do a query to get posts with a slug and category__not_in. Here's what I do: $query = array( "name" => "test", "category__not_in" => array( 15 ) ); query_posts( $query ); ...
2
votes
1answer
22 views

get_post_field - Title without paragraph

Normally I wouldn't insert a single post with a technique like this, but sadly this project requires it. I try to call the post_title with: echo apply_filters( 'the_content', get_post_field( ...
0
votes
1answer
18 views

How do i import Facebook post as wordpress post without duplicates? [on hold]

can any one Idea about how to import Facebook post to WP post? I am already use one or two plugin but its down the site and add more link on page load so its down my website also. And some time its ...
0
votes
1answer
42 views

How to get a post's content? [on hold]

I'd like to known what is the best solution for getting a sepecific post's content. By slug, tag, id or category ? Or template assigned to this post ? I don't like the way to find this post by its id ...
0
votes
0answers
16 views

View all multisite posts from one “hub” site

I'm creating a centralized blogging network for a client. The idea is that, on one of the many sites, the client can see a list of all the posts on all the sites. The interface for this would ideally ...
0
votes
0answers
16 views

Using Flickr Images in wordpress [on hold]

I am trying to use Flickr as my image hosting service. When I am writing a blog article, I have no issues embedding Flickr images but when I'm working on something like a recipe that doesn't provide ...
0
votes
1answer
13 views

Sort Events by Venue Title - Sort Post set by related post ids

In wordpress, I am using The Events Calendar Plugin to host events. This includes two post types: events and venues. On an index page, I would like to list ALL events, but ordered by their ...
0
votes
0answers
13 views

post viewer page in wordpress directory [on hold]

I want to find a page which shows post in Wordpress site where something like query - $show = "SELECT from post WHERE post_id='$post_id'"; I want to replace some codes before display the post in ...
1
vote
1answer
39 views

How i can limit period of post publication?

I need to limit period od post publication - admin type date, for example, 30.05.2016 in custom fields and then i need to hide custom posts with this date less, then today date How i can do this?
-2
votes
1answer
18 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 ...
1
vote
0answers
20 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 ...
4
votes
3answers
109 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
16 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
28 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
36 views

Carousel with 4 Items per Slide | Custom Post Types | Bootstrap [closed]

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
26 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: ...
0
votes
0answers
27 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 ...
-4
votes
1answer
10 views

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

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
9 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
0answers
9 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 = ...
0
votes
1answer
17 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 ...
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: ...
1
vote
0answers
20 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 ...
-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
49 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
0answers
16 views

Compare two posts by taxonomies [on hold]

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
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 [closed]

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 ...
-3
votes
1answer
27 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 ...
0
votes
1answer
34 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 ...
5
votes
3answers
49 views

Random sort within an already sorted query

I have a working query which returns a set of custom posts which are ordered by their package ID (ASC). For a query with 9 results this may return for example: 4 posts (Post ID's 1,2,3,4) with ...
3
votes
1answer
28 views

Where can I find the code how wordpress parses a post?

When you write a post in text section instead of visual WordPress will work with HTML. But when you save the post and preview it, it will transform your HTML-like text into real HTML with proper ...
0
votes
0answers
45 views

Add post order to function

How to add post order to this function? I would like to display most recent post from newest to oldest: <?php //Establish first post check variable $first_post = true; ...
0
votes
0answers
21 views

How to get post count including nested categories

I am traversing through categories using function like this function hierarchical_term_tree($category = 0) { $r = ''; $args = array( 'parent' => $category, ); $next = ...
0
votes
1answer
28 views

Wordpress Request Post All Post ID in a Loop? [closed]

I would like to ask if there's a way on WordPress to get fetch all of the page's Field?... I am using a Advance Custom Field Plugin and would like to fetch data's from fields inputted over those ...
0
votes
1answer
23 views

show recent posts php code error?

I'm using this code to show my recent posts in my website: <div class="post_content"> <div class="home_posts"> <?php $args2 = array( ...
0
votes
1answer
22 views

How to get all posts belongs to a user between a certain date

I am writing a plugin for my company so I need to get all posts belongs to a user between a certain date which is given by another user. Then I want to count words for each post and finally add them ...
0
votes
0answers
15 views

Hook and prevent certain posts from being imported

0 down vote favorite I'm using WP ALL Import to import thousands of posts from a custom XML file. I filter it the best I can with XPath, but some conditions have to be done in PHP. How can I hook ...
0
votes
0answers
24 views

Categories option not appearing in post meta box

While create new post, categories options is not visible in screen options. where I can find to show categories option while adding new post?
-1
votes
0answers
20 views

only allow ONE post in a certain category; uncategorize all other posts with same category

I've created a category called "top headline" and relative query that displays ONE POST from this category. Scenario: Let's say I have one post currently categorized as "top headline". Then I create ...
0
votes
0answers
17 views

How can I deny the user the insertion of emails in topics / comments and stay on the same page?

I have this function that checks whether or not a content contains an email: function fw_check_if_content_contains_email( $content ) { if ...
0
votes
1answer
26 views

Apply filters when loading post via ajax

Have been trying to solve this for couple of hours already. Here's the case: I'm making a plugin that separates the posts into pages using the <!--nextpage--> tag. It works fine but I want to ...