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

Post gallery as carousel

So I have this idea in mind: I would like to create custom page template, and whenever in post gallery is between tags, for example: Lorem ipsum somethinginkgsd.... [carousel] Gallery here ...
0
votes
0answers
7 views

Pagination breaks custom sub menu

I've got the following class which allows me to make a specific sub menu. class Custom_Walker_Nav_Sub_Menu extends Walker_Nav_Menu { var $found_parents = array(); function start_el(&$output, ...
0
votes
0answers
5 views

Wordpress plugin that snaps picture out of linked site like pinterest? [on hold]

I was wondering if there is a plugin that automatically snaps out a picture of a linked site, when I am writing a new post and let me use it as a featured image. Pinterest is a very good example for ...
0
votes
0answers
9 views

Custom template of page with blog posts list for multi-blog page

I need to use (on my theme) multi blog pages (Posts page). My idea is using page template for it, but I have a problem with getting all posts in template file. Regular loop the_post() from index.php ...
-1
votes
0answers
14 views

WordPress Post Does Not Match the One That is Live [on hold]

The Post I Make in my Editor Will not Match The One On the site. The picture gets thrown in a different position and the text gets chopped up in various segments of the screen. Also, I've tried ...
0
votes
2answers
16 views

Accessing the post content with wp_query

I have the following code from a template to view get the post information: <?php $args = array( 'post_type' => 'post', 'posts_per_page' => $count, 'paged' => $paged, ...
0
votes
1answer
18 views

Transition from Draft to Scheduled Post with wp_update_post

I am trying to transition my post from a Draft status to a Scheduled status in the future. Here is my code to do that: if($save_as_draft == "yes"){ $post_status = 'draft'; $post_date = ...
-2
votes
0answers
20 views

I want custom post template? [on hold]

Hey I want to have some attributes in my post template by default, like when I click add new post, i want to have by default Mail subscription and more...
0
votes
1answer
14 views

Publish a Post on a Future Date Automtically

I would like to give my user the ability to publish a post and the post only becomes visible (like with a published status) when the date hits. I'm using the following code to try and set it to ...
1
vote
0answers
9 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
11 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
24 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
11 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
14 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
23 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
17 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
12 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
45 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
14 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
17 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
17 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
15 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
21 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
12 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
44 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
29 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
23 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
47 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
49 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
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
21 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
36 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
25 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
42 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
33 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
17 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
27 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
45 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
26 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 ...