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
2answers
18 views

How to get post ID of the current page/post inside a widget?

I'm trying hard to get the post ID of the current post/page inside a widget class but doesn't work, I know there's get_the_ID() and some other options but not a single works inside a widget. Here's my ...
0
votes
0answers
16 views

Get all post that not have any category

i am creating a frontend dashboard where i need to show all the post . So i need to show posts with all post status. Mainly published, trashed and the pending. and without category I am now using ...
0
votes
0answers
23 views

Access to the header cropping tool in modal

For the moment I access the media uploader via a meta box from the edit post screen. The code works: no problem. However, I would like to know how to be redirected to the crop tool right after the ...
-1
votes
0answers
8 views

It is possible to display advance custom field on mailchimp mail? [on hold]

I am trying to display acf on mail chimp mail so its possible or not ?
0
votes
0answers
22 views

Want to get posts with their content with their category and subcategory?

I am working on a theme in which I have to show all the posts with their dedicated category and subcategory. Actually I have tried on Google and codex, but I can't find what I want. Actually I have ...
0
votes
0answers
5 views

How can get all node and id and date form 01-01-2014 and from WordPress start from 01-01-2014

I have site in drupal and i need to convert it to WordPress, So i convert all my content and node from drupal to WordPress, But i need to get all node and date from Drupal and all post and date from ...
0
votes
1answer
17 views

How to define which register_post_status goes to which register_post_type?

New to registering post types but looking at samples, and the codex not helpful here. I am not understanding how the two of these relate? This is just bare bones so someone can explain (the parameter ...
0
votes
1answer
17 views

find view post hyperlink in PHP wordpress admin file

a very simple question regarding the Wordpress backend. I would like to hardcode the link of "view post" in the post section. does anyone of you know which part I find it? Thanks
1
vote
1answer
16 views

Post slugs and images cannot have same name?

If I go to Media Library and upload an image called apple-pie.jpg And then I create a post called www.domain.com/apple-pie/ The link does NOT take me to the post. Instead the link will take me to a ...
-1
votes
0answers
15 views

Video Gallery / Hosting it on different site [closed]

Okay, I have videos hosted off site from my wordpress. I'm trying to mass post video embed links into a gallery. I'd like to be able to use a csv file or import links some how and use those as my ...
1
vote
2answers
36 views

When and Where is `global $post` Set and Available?

Usually when people think of the global $post object it's assumed that it's actually set whenever you enter The Loop. I started to play around with how early I could actually call global $post which ...
-2
votes
1answer
12 views

Post grabbing all comments issue [on hold]

I'm having a problem where one of my posts is grabbing all the comments on the site and displaying them (even though the post has no comments belonging to it). None of the other posts do this, their ...
0
votes
3answers
23 views

Get post_content with <p> tags?

I'm trying to retrieve the post content of an specific post $post = get_post(/* id */); $content = $post->post_content; However this retrieves the content with no line-breaks. I noticed this is ...
0
votes
1answer
30 views

How To Pick “full/thumbnail” Image In A WordPress Loop?

I am picking WordPress latest post through WordPress post loop for that I am using the below code but in this its picking all images at full size. <?php if ( have_posts() ) : ?> <?php while ...
0
votes
0answers
27 views

Display page content inside a onclick popup or fancybox or lightbox

I'm doing a single page theme. So in that I would like to have some links which load the page content of the page inside a fancybox or lightbox. I've already tried Best way to load page content in ...
1
vote
1answer
24 views

Inserting custom data to the_post() during loop

I have some posts on my WordPress site, and let's say I want to add a random number for each post with $num as key and random() as value. Then I want to access them with something like: $post->num ...
0
votes
1answer
15 views

How to get only current images of a post

I am new to WordPress. I have created a template page where I want to show single posts, So to get media of that post I am using a function $args = array( 'post_type' => 'attachment', ...
0
votes
0answers
14 views

Categories showing up on wrong page

I do not run the site, but am doing some updates. One of the ones I was asked to do is remove the cats from the adopt a dog or puppy page. When I go into the dashboard and look at the posts, they all ...
0
votes
1answer
25 views

How to add category post count in main navigation menu [closed]

Can you guys can help me on how to add/show the post count for category in main menu. eg: Web Design (10) | Typography (12) | Inspiration (10) | Business (19) I’m using Hueman & Hueman child ...
0
votes
1answer
17 views

New posts defaulting to '0' primary key

When trying to create a new blog post, Wordpress is showing a Database error: WordPress database error Duplicate entry '0' for key 'PRIMARY' for query INSERT INTO `wp_posts` ...
0
votes
0answers
9 views

Sort posts in the admin list by author type (or user role or whatever)

So I know we can can sort postsin the admin pages by things like the post's terms, or author. But is it possible to sort all the posts by the user role? The site I am working on has three different ...
0
votes
0answers
42 views

How to get the Next & Previous Post Opening in Zurb's Reveal Modal Lightbox

I have set up a loop that has my posts opening successfully in a reveal modal lightbox but I'm having difficulty getting the next and previous posts to open in the lightbox. The previous_post_link() ...
0
votes
1answer
46 views

Bulk update post slugs through database

Is there a way to bulk update permalinks through the database? cause I have like 20k posts and all I want to do is add a prefix to the permalink. I could just manually update but that's too tiresome ...
0
votes
0answers
23 views

Get custom type category from a category posts

I've been searching the way to do it but no good. The title may be confusing, let me explain my problem... I have the archive page (the main category), then I've posts inside that category and inside ...
0
votes
2answers
30 views

Reworking function for counting custom post type posts count

I am trying to rebuild my inline posts counting to a function. What would be the best way to do that? Here is my inline code: $posts = ...
0
votes
0answers
28 views

Ordering posts alphabetically by meta keys and title

I have a query for custom posts and I have managed to order the results alphabetically based on the title first then a 2nd alphabetical ordering of the 1st of 2 meta keys "Species". This works great. ...
0
votes
0answers
14 views

Adding 'Edit' and 'Delete' columns in Posts menu

I would like to add Edit and Delete column for the table that displays the list of posts. This is because my client does not know how to edit the post (the link appears when you hover onto the title ...
-3
votes
0answers
26 views

Related Posts without plugin

I need to my folder single.php insert code related post I tried but problem that does not appear div where the path for the images. Or the exact steps? Thank you
0
votes
0answers
24 views

how to show a tooltip include of thumbnail and excerpt when hovering a post link in other post?

Is there any way to call thumbnail and excerpt for link of post in another wordpress post? For example when i hover a post link in other posts, it shows a tooltip include of thumbnail, excerpt. Like ...
0
votes
1answer
24 views

Get latest post from categories

I have 3 categories: Travel, Destination and Tips. I've been trying to get the latest post from each categories then put them into an array. Here's what I have in mind. //GET CATEGORIES //I have this ...
0
votes
0answers
13 views

Nested get_template_part / WP_Query – How should I do this?

I'm running a loop that runs a certain get_template_part, and that template file itself should then run another get_template_part, with the purpose to get some posts, is this even possible? At the ...
0
votes
1answer
19 views

Add category to all post by using sql query?

I have a thousand posts and all them don't have category. Do you know how to associate category with all posts by using sql query?
4
votes
4answers
320 views

Are post ID's reliable?

I understand that post ID's are unique, but are they reliable as persistent data ID's? More specifically, is there a guarantee that, through a migration or another data exchange, post ID's will not ...
0
votes
0answers
34 views

Is there a way to change the complete URL of the blog post for a redirecting tracking link?

Client wants to add tracking URLs to each blog post. So, for example, he gave me a URL like http://clk.atdmt.com/CNT/go/1234567/01/ which when clicked on would redirect to the URL of the blog post. ...
1
vote
0answers
16 views

Let readers suggest edits from the frontend

I'd like to make my articles editable at the front-end for any reader who visits the site. (More like a wiki). I don't really want to trouble them through the registration process. I have no idea how ...
0
votes
1answer
9 views

Post/page title to permalink transformation - what is behind the scenes?

If the post name is used as the permalink, what "transformations" does Wordpress do to it when using it as the URL and when does it perform these transformations? Like stropping spaces and special ...
0
votes
0answers
15 views

“Add post form” inside a custom admin widget?

I have created a custom post type (support ticket) and a custom user role (client). So, I want to create a widget that allows a client to add a new ticket (which contains only 3 custom text fields). ...
0
votes
1answer
28 views

Wordpress with static posts page and custom permalink structure doesn't find posts with numeric permalinks

I've setup a static posts page named "Journal", mydomain.com/journal. This page now lists my 15 latest posts. All fine this long. I'm able to access each post individually by going to ...
0
votes
1answer
14 views

Post page 404 with WP e-commerce plugin in wordpress [closed]

I have weird issue with WP e-commerce and post details page ! When I change Permalinks to Post name OR Custom Structure to /%postname%/, my all post details page go to 404 error, though product ...
3
votes
3answers
122 views

Skip post in loop and mixin later

In the blog, i try to avoid to show two posts from the same category in succession. So if the latest two posts are from category 1, i want to skip the second one, take post 3 first (if it's not from ...
-1
votes
0answers
17 views

Post page is interpreted as image?

I'm doing an ajax request(POST) and after the request is done I can see in the console this : Resource interpreted as Image but transferred with MIME type text/html: ...
0
votes
1answer
22 views

Hide categories from showing above a Post

Each Post on our blog has a subtitle on the right above the main content saying: CATEGORY: <category 1>, <category 2> How should someone that's unfamiliar with PHP, remove this entire ...
0
votes
0answers
19 views

custom post types preview from post.php and new-post.php

I use wordpress 4.0 and I'm building a site with 2 custom post types: ptf and addendum. I modified ptf post type interface (post.php and new-post.php) and in this interface I added 2 addendum post ...
1
vote
2answers
24 views

Change user role when post approve

I have two roles. A: The user sends a post for moderation B: The user publishes posts without moderation For new users the role of A. How do I do if I approve of his first post, the role is ...
0
votes
0answers
28 views

How to show description of media library under an inserted image?

What i want to do is showing automatically the imagedescription, inserted in the media lib, if available. I found this solution, How to show description under an inserted image? which is great, but ...
-1
votes
1answer
31 views

Adding JS functionality to the Publish button in wp-admin/post.php

I've created a plugin with a new metabox in my post.php. It's working fine on it's own, but the problem is getting it to save it's values if the users choose to press the "Publish/Update/Save" in ...
0
votes
1answer
16 views

How to delete all trashed item in one-go

Currently I'm using wp-optimize to remove all trashed posts, trashed comments, draft posts However, this plugin sometimes not working and more important, it does not delete any trashed items from ...
0
votes
1answer
9 views

How to edit label_submit styling?

This is going to sound like an easy fix, but I am looking to style my submit comment button on my comment form. Currently the code in the $args = array looks like this: 'label_submit' => ...
0
votes
2answers
18 views

Do not show children of a category

I'm trying the next code: $categoria = get_the_category(); $hijosCategoria = (array) get_term_children($categoria[0]->term_id, 'category'); $queryBase = ...
0
votes
0answers
10 views

Custom post type request switches to media request

I am using Modern Tribe's Events Calendar Plugin http://tri.be/shop/wordpress-events-calendar/ I use this on multiple sites, but I have a really weird problem. I've already checked to ensure it is ...