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
0answers
8 views

post_parent is 0 when uploading new files

I have a custom-type post I'm trying to attach some audio/wav files to using the wp-admin UI. When I upload the new files using the Add Media popup those get saved and embedded into the post just ...
0
votes
0answers
3 views

Getting the current page post_id in function hooked to wp_ajax?

I have created a kind of a social network where when a user registration happens, I create a post (custom post type follower) for each user and assign its post_id to the user ( ...
0
votes
0answers
21 views

Insert <!--nextpage--> after every x img tags in a post

I want to insert <!--nextpage--> after every 10 image tags in a wordpress post (if there are 30 images, I'll get 3 pages), but I can't seem to figure out how to do it. I found a php function that ...
0
votes
0answers
8 views

Show posts between two Custom Fields date

I'm trying to fetch all the posts from today to next week by using some custom fields inside posts, using Advanced Custom Fields. Everything was working until now, because it doesn't show posts from ...
0
votes
1answer
12 views

I don't want the complete article to show on homepage

When I post articles the complete article shows in the home page. I just want it to show Intro and then read more. I did not create the site myself and just taking on the role of admin of the page.
0
votes
1answer
19 views

get_template_part for custom post type content not working

I have a custom post type of Textorial with necessary template files: textorial-type.php single-textorial.php content-textorial.php The idea is to have a custom layout for the post type and use ...
0
votes
1answer
15 views

Adding editable content above posts

I want to have a content area above my posts where I can use the visual composer to edit the content. However, when I go to manage>pages and then to the page which has my blog posts, and try to add ...
-1
votes
0answers
8 views

How to add icon “play” to “video image thumbnail” [on hold]

I want to add icon "Play" Video to Video image thumbnail or any pictures in Wordpress. (Ex: in the picture bellow) I had try to find plugin support this but I haven't found it. Is there any way ...
0
votes
2answers
40 views

Display posts by month

I want to achieve something like this, I don't know if it is possible and what would be the best way to do it: The way I query the posts is like this: <div class="post"> <?php global ...
0
votes
1answer
12 views

Use post in multiple places on a page with multiple posts

I have three custom post types: workouts, news_items, and business_items. I'm trying to display the top (most recent) item from each on the home page and I'm trying to put the featured picture from ...
0
votes
1answer
15 views

Single post full screen template not inheriting worpress role permission

In addition to the normal single post view on my website, I added a full screen version of the post with entirely new set of styles. In this full screen option, everything is removed except ...
0
votes
1answer
14 views

Visting slug for 'post' post type shows 404 not archive?

I'm trying to get the WP default post type 'post' to show under the slug of /news/. I've changed the permalink structure to /news/%postname%/ which is fine when visiting a single page, however when I ...
0
votes
1answer
30 views

How to get post_content while the post is being edited

I'm building a plugin that uses custom posts. The custom post uses metaboxes but some of the meta fields need information typed in the post editor. I'm trying to use post_content to retrieve ...
0
votes
0answers
14 views

Add “New” label to post not older than 24 hours [duplicate]

I did not found many results when searching in Google and the items that I found did not help me very much. How can I add a label "New" to posts that are not older than 24 hours? Is there a function ...
1
vote
1answer
20 views

Categories list into registration form

I'm trying to create a custom user registration form used for Educational website. Is it possible to automatically retrieve categories of posts (custom posts) in the registration form. The form ...
0
votes
1answer
11 views

Call image from post on index page?

I am facing one problem in which i dont understand what I used to call the image from post in WordPress themes on front page where n numbers of image are show with there description and user can ...
0
votes
0answers
16 views

How to display data with pagaination on backend?

I am new with WordPress development so I have no idea how to do this functionality with WordPress. I got one task to display some data from database and have to display records with pagination(Just ...
0
votes
1answer
25 views

Guest Author - How to display posts on /author/ archive page

I have used the Advanced Custom Fields plugin to create all the data elements for a company leadership directory page and management bio pages. On the site blog, management will not be posting ...
0
votes
0answers
24 views

How can I display excerpts of my Recent posts on my static homepage?

I am using the openstrap theme. I want a static home page on my Wordpress website, I have already set this up and have a bit of content on it, the next step is I want to have atleast 4 most recent ...
0
votes
1answer
39 views

Changing default WP-Site creation date

I started creating WP-Site this January-2015 but as per my project I need to include posts which are from year 2007 I created posts with the required date now I used a calender which sorts posts when ...
0
votes
0answers
22 views

Correct way to set up a template which will list all posts/posts by category/posts by year?

Been working in WordPress for a while but, funnily enough, never had to build a blog page within a website. I'm pretty there's a "correct" way to do this, which I want to learn, rather than the ...
0
votes
0answers
17 views

Adding a link from post excerpt to full post — irrespective of excerpt length

On an archive/blog page, I would like to automatically display a link from the post excerpt to its corresponding full post -- even if the post has an excerpt but the excerpt is shorter than the ...
-2
votes
1answer
23 views

Canot save post if any meta box was empty

I need to dont save new post from custom post type if any meta box empty. So we must check the meta if empty, we mus show me " You must fill all meta box value before save post" else if all meta ...
1
vote
2answers
44 views

How can I show a custom post type for users in the authors.php file?

Here is the code I have. It is showing 100 custom post known as campaigns. I need it to only show the current users. So author/joe should only show joe's campaigns. <?php ...
0
votes
1answer
45 views

Custom post type single (permalink) throws a 404 error

I'm working on a website that has Woocommerce installed (also a CPT if I'm right, but that one works fine). This website has a custom post type for jobs, this cpt has posts that are linked to in the ...
1
vote
1answer
14 views

Authors in menu, template list post by author

Can i get a specific author in main menu and when you click on it to see all the post buy this author. Also i need to see all posts ordered by authors too in the menu. In what template should it ...
0
votes
0answers
12 views

Custom Page Option [closed]

How to add/change custom fileds in Page Options? Like Clients, Skills, etc. Theme is Versatile. I'm new in WordPress.
0
votes
1answer
26 views

Edit post meta direct from post.php?

Does anyone know of an easy way to be able to edit ALL of a single post's meta at once ie on the post.php &action=edit page? As some of the meta has been put in there with the update_post_meta() ...
0
votes
0answers
7 views

Time difference error while publishing posts to word press via xmlrpc

I have a blog which i update content on the daily. in addition i have a system that pushes content(posts) to the blog via the WordPress xmlrpc file. My blog and the content pushing software are on ...
0
votes
1answer
21 views

Display the latest post from some selected authors

I'm building a slider that will display the latest post of a few selected authors. So far, I've written this: <?php $args = array( 'post_type' => 'post', 'posts_per_page' ...
0
votes
1answer
19 views

Call posts of particular category in a page

As per my requirement I need to call posts in a page for example Iam having a menu item Current Tenders and having a posts category Current Tenders now I need lo display posts related to current ...
0
votes
2answers
34 views

Display posts both in list and grid view?

I need to display posts both in Grid and List views the user can able to choose the view that means I need to add an option to switch between both views please someone help me to achieve this either ...
0
votes
1answer
22 views

How can add metabox for post of specific category before save post and after save post

I want to add Metabox for the posts of category=5 and i am using the following code but unable to do so . So please help me out-> add_action('admin_init','my_meta_init'); function my_meta_init() { ...
0
votes
1answer
39 views

wp_query if have posts show date but not in loop

I have a wp_query set up to show events and I want to show the date if we have posts and if we do not I do not want to show the date. Here is my code: <?php $today = getdate(); ...
1
vote
1answer
31 views

Can wordpress differentiate between added and updated posts?

I've been looking trying to find an answer as to wether it is possible to get wordpress to display if a post has just been added(published) or if it was simply updated? (This is to add on a homepage, ...
0
votes
2answers
21 views

Custom Posts on Different Pages

So first off let me start off saying I'm new to WordPress development. I know HTML/CSS/JS like the back of my hand, but PHP and it's functions are new. Anyway. My problem may be simple, so here goes: ...
0
votes
0answers
16 views

Multiple Post Repeat for Related Post Loop by Category

This is my code: if ( is_single() ) { $categories = get_the_category(); if ( $categories ) { foreach ( $categories as $category ) { $cat = $category->cat_ID; ...
0
votes
0answers
14 views

Adding category in wordpress - custom

// Auto post ( Unique File Date ). $postData = array( 'post_category' => array( '0' ), 'post_status' => $Post_Status, 'post_type' => $Post_Type, 'post_date' => ...
0
votes
1answer
26 views

Add custom class to existing menu items from custom meta

I would like to add a custom class to my existing menu items. The problem is, that I would like to do something like this: <li class="<?php echo get_post_meta($post->ID, "_icon", true); ...
0
votes
0answers
15 views

How to check if certain user has viewed a certain post?

Is there a way to check if a user has viewed a certain post? It'd be nice if I can check in the admin panel. For example, if I click on USERS on the panel and select any user(to get access to this ...
0
votes
2answers
44 views

How can I set a maximum allowed post size and number of posts submitted?

How can limit the size of posts that authors can create on my WordPress site and the number of posts they can create?
0
votes
1answer
24 views

WP Query between posts custom fields [duplicate]

I've tried doing a WP_Query based on a custom field, which name is 'date' and value is something like '14/01/2015'. I want the query to give results when 'date' is between today and tomorrow. All ...
0
votes
1answer
16 views

Showing content from Wordpress ruins page CSS using WP_Query, without, content does not show

I suppose I have a two pronged issue here. I'm trying to show wordpress posts on my own site. I have a page where people can view the list of articles, then when they click on one it takes them to the ...
0
votes
1answer
23 views

Some comment box wordpress in 1 post [closed]

Can I add more sections to comment on the same post? For example, I have an Entry and it has 4 tabs, In every tab you need a comments section, Is this possible? Thanks
0
votes
0answers
14 views

Post Publish Metaxbox on a Front End Page

When I create a post within the Admin section in the top right there is a Publish meta box that you can chance the Status, Visibility and Publish date. I created a page to allow a user to create a ...
0
votes
1answer
20 views

Adding post date will not insert new post

$postdate = '2010-02-23 18:57:33'; $postData = array( 'post_title' => $attachment->post_title, 'post_type' => 'post', 'post_content' => $image_tag . $attachment->post_title, ...
0
votes
0answers
17 views

auto post with custom date php wordpress

When i upload the image from wp_media, this below code runs: add_action('add_attachment', 'auto_post_after_image_upload'); // Wordpress Hook function auto_post_after_image_upload($attachId) { ...
0
votes
1answer
39 views

Wordpress pages taking on the names of posts

We have several pages and a number of posts. Some of the pages especially the home page seem to take on the name of particular posts. This includes the slug. Despite repeated attempts to rename it, it ...
0
votes
0answers
31 views

Template for portfolio, posts existing but still “not found”?

I'm updating a website which wasn't made by me initially. The website has a portfolio-template which is used on severel sub-pages in the menu, and each sub-page has its own category. Now I want to ...
0
votes
1answer
26 views

Get current post's nav menu name (term name)

I want to get the nav menu name by the current post ID. After hours searching in my database I found out that navigation menus are basically just terms of the taxonomy 'nav_menu'. But for some reason ...