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

AJAX fileupload - TypeError: not a function ajaxSubmit()

I have a plugin that works as a standard POST but not as an AJAX POST request. I am getting a not a function error in Firebug with this function: TypeError: jQuery(...).ajaxSubmit is not a function ...
0
votes
1answer
25 views

User Selectable Delete of Pages

in my WP MultiUser project i am designing a template for deleting a page from the front-end (only the super admin can access the back-end admin panel) I have almost achieved the desired result, but ...
0
votes
4answers
69 views

Post thumbnail height problem

I am trying to create a square thumbnail with auto crop with size of 300px 300px. I only get the width of 300px but the height is auto, i think is not cropping. I tried this: add_image_size( ...
0
votes
1answer
39 views

Loop doesn't display posts. It displays a link to the home page instead

I’m building a WP theme using Bootstrap. Aparently, all templates were working fine until I tried to display a list of recent post on the front page. Basically, the loop it’s not displaying posts (it ...
0
votes
2answers
93 views

What Is meta_id In wp_postmeta?

I am trying to add some data in WordPress Custom Field and via adding more direct records/data in wp_postmeta table via SQL query. There are four column as mentioned below... 'meta_id' - A unique id ...
0
votes
0answers
34 views

Inconsistent post order using wp_insert_post

I am retrieving a consequent (~4000) number of posts from a database that I want to save to my WordPress database. I am inserting them this way: include("wp-config.php"); $con = ...
0
votes
1answer
20 views

How to associate media with a post?

We are using a WP LMS and use custom posts for the courses. I would like to have an area in each post where there are course materials. So on the backend, a section for materials and the front end ...
0
votes
1answer
36 views

How to display featured image without it appearing in post?

I want to have the featured image as a thumbnail when I search for the post but I don't want the featured image to be on the actual post itself. Are there any plugins or edits to code that I can do?
0
votes
0answers
35 views

4.0 Media Uploader Customisation

Does anyone have/know of any guides or tutorials that break apart the different hooks and sections of new improved the media uploader? Specifically, I'm looking to add a new tab to between the ...
0
votes
1answer
236 views

Custom taxonomy archive page problem

My website is built on custom post types, that I have organized with different custom taxonomies. The menu buttons are the taxonomies archive pages (red, blue, green), so that when you click on the ...
0
votes
0answers
30 views

Custom Post Types and Posts are mixed

I need help with a problem related with CPT and WP Database. I have a wordpress install with bbPress and a custom post type called Destinos. The problem is that when I´m looking for the forums, or ...
0
votes
0answers
17 views

When I update a post and at the same time trigger an ajax request, post request is cancelled

When I update a post and at the same time trigger an ajax request, post request is cancelled. I have a video that proof this behavior.http://screencast.com/t/w2YwDGmWCg
1
vote
2answers
62 views

Fetch posts from current week (Sunday to Saturday)

I'm trying to fetch posts from current week. <?php $args = array( 'date_query' => array( array( 'year' => date( 'Y' ), 'week' => ...
0
votes
1answer
54 views

wp_insert_post not working fine

I asked my question on stackoverflow but I did not get any answer, may be because it's the question related to Wordpress.So I am asking it here. I am using wp_insert_post function to insert my posts, ...
1
vote
1answer
69 views

How to remove images from showing in a post with the_content()?

Trying to learn more about creating my own themes and not using any plugins I wanted an ability to display all the images in a post excluding the thumbnail in my single-foobar.php file and I can do ...
0
votes
1answer
30 views

How do I get thumbnails?

Today I set up my Wordpress blog I used the hueman theme I looked at my posts page And there were blank images with cameras in the middle of them So I guess there thumbnails How do I get them?
0
votes
0answers
20 views

hide image or text in full text (only in shortpost)

i need to put image or text only in shortpost and when user click read more and see full post dont see image or text in shortcodes anymore i need this only for some post : i want to put a preview of ...
-2
votes
2answers
144 views

CSS code for “inserting a custom post divider” after each post

I want to add a custom post divider to separate my posts. I'm using the Enfold theme in WordPress.org. I've searched for the answer to my question but I don't understand the coding language. I ...
0
votes
0answers
22 views

Get post titles shows on single posts

I want to display this link lists in "single post" only. How to do this? add_action( 'genesis_before_footer', 'radiolink_unit', 1 ); function radiolink_unit() { ?> <div id="languagelinks"> ...
0
votes
2answers
56 views

Call Web Services on post first publish

I want to call some web service when i publish a post. I want to add a checkbox so as to decide whether to call or not call after publishing. I have found the code to call both REST and SOAP web ...
0
votes
1answer
65 views

Show related posts based of current ACF field name in a single page post (a loop within loop)

I have a single page where I display my current post. Within the post loop, I wanna display another loop inside that shows 3 other related posts by title that share the same text as the current post ...
0
votes
0answers
52 views

How to add validation / error message while add/edit custom post

I am trying to add error message on custom field in custom post save action But my validation not working. Check my code below. add_action( 'save_post', 'save_event_meta_data' ); function ...
1
vote
1answer
40 views

Are posts updated or built from revisions + autosaves?

When editing a post in the admin I see records being added to the database to document my changes (here is part of the hooks I'm logging): ... http://local.dev/151-autosave-v1/ clean_post_cache ...
-1
votes
1answer
20 views

How to make diferent post formats for different pages?

I am making a word press theme. I want different post format of blog page and category page! Here is an example of what i am trying to say http://zeequotes.com This web site have different post ...
1
vote
0answers
30 views

Add a custom meta box in the post options that loads some html code in the header

I run a blog that is built in the format - Logo - Nav Large Image + Email Optin Form Content / Sidebar Footer Now I want the large image and email opt in form to be optional. Right now, what I ...
1
vote
2answers
91 views

Get a custom field of all posts on current blog page

I am trying to get a custom field value from all posts listed on current blog paginated page. Not sure if it's clear, let me explain it more. On blog index page (or on second page of pagination) I ...
0
votes
0answers
21 views

Run php code when user clicks button in plugin's meta-box?

I added a meta box to the publish entry page. I want to add a button so that when the user clicks it the post is sent by email, for that I need to run a function that get's the $post object when the ...
0
votes
0answers
20 views

Why I obtain this WP_Query strange behavior trying to select posts having a specific tag?

I have the following problem with featured tag posts I have a page of a website in wich I want to show only the posts that have setted a specific tag (using the loop). So in this page I have put ...
3
votes
2answers
192 views

Why declare $post globally?

I'm new to Wordpress development and am seeing examples everywhere that have a line to declare the $post variable explicitly via: global $post; But I've tested my uses without that line and it ...
0
votes
0answers
13 views

Why I have this strange behavior when I try to exlude the featured post from posts visualization?

I am quite new to WordPress theme development and I have a strange behavior with this custom theme on which I am working: http://lnx.asper-eritrea.com/ As you can see in the home page I have 2 areas ...
0
votes
1answer
40 views

Custom post types related to same custom post type?

I have custom post types product. I want to create related products from same custom post type (product). The user should be able to select posts (products) just as a user selects a category(or more) ...
0
votes
1answer
217 views

Only display sticky post or latest post in custom loop

I'm new to Wordpress and PHP and I've been battling with this for a while now. What I have for the moment is 2 loops. I want to first loop to only ever show 1 post: either a sticky post, or the ...
5
votes
3answers
208 views

“coming soon” placeholder blog posts?

I have a page set up with six posts per page with two rows of three posts. If I only have one post up, I would like the other five to have "placeholder images" letting the viewers know that more posts ...
5
votes
1answer
311 views

Allow user to “edit_others_posts” to save only, not publish

I want to add a couple of editors that can edit_others_posts, but I do not want them to be able to publish others posts, only save the post by clicking on the Submit for Review button. How can I do ...
0
votes
0answers
59 views

Why doesn't my WordPress page show the most recent post?

I was wondering if someone could help me with the following. My news page on my WordPress website doesn't show the most recent blog post, which I want it to do. The code I have is: ...
1
vote
1answer
96 views

post_row_actions for custom post type

I'm using this code to have a duplicate post function in WordPress Admin. However, when I add the filter for a custom post type, like this: add_filter( 'directory_row_actions', ...
0
votes
1answer
88 views

When sending a newsletter -not with wordpress- the server has 100% cpu [closed]

When sending a newsletter (not with wordpress, but with another external newsletter campaign tool) to 3,298 recipients, we have unique opens: 155, the server has 100% cpu from too many httpd instances ...
0
votes
1answer
68 views

Get postlist for each category using query_posts?

<?php $cat_name=array('Breaking News Stories', 'Call-out', 'Featured Story', 'Standard Stories'); $count=count($cat_name); /*Get category_id by its name*/ for($i=0; $i < $count; $i++) { ...
0
votes
0answers
36 views

Wordpress Author Posts Review After Every Change In The Same Worpress Post

guys pardon my english, I am new to wordpress & I have been trying to set up a wordpress website for product reviews where new users will submit their reviews for the product/products. New user ...
0
votes
0answers
17 views

How does one change the posts database table of a site?

I am currently in the process of developing a mobile site to accompany a site that I have been operating for a while. I came up with the idea to use multisite to create a second site with a ...
0
votes
2answers
29 views

Post title is not showing

<div class="text_area"> <?php if ( have_posts() ) { while ( have_posts() ) { the_post(); the_content(); } // end while } // end if ?> <div ...
4
votes
2answers
98 views

How do I create a link that will always show the latest post?

If I want to create a link that will always show the latest post how can i do that? Lets say I have three post types and there are three links with posts names (like a nav list) to those post types. ...
0
votes
1answer
44 views

How to show an entire post content and not also the excerpt?

I am pretty new in WordPress theme development and I have the following problem showing posts. You can easily understand what I mean opening this link: ...
0
votes
1answer
25 views

Displaying content of single post

How I can display content for a single post? My code: if (is_single()){ get_header(); get_sidebar('left-article'); render_article(); get_footer(); } In render_article I call ...
1
vote
1answer
60 views

Future post ID not showing

I'm attempting to send an email notification when a scheduled post is published. I've tried quite a few different ways. I receive the email but the id (and other random details) are not published with ...
0
votes
1answer
119 views

query post limits

function posts_limit_fn($limit, $query, $custom_limit = ''){ if($custom_limit !== ''){ return $custom_limit; } return $limit; } this piece of code is executed into an AJAX ...
0
votes
1answer
23 views

Is there any way to tell when wp_postmeta has been updated?

I have a website for a client, where users can vote up or down certain things on a leaderboard. The up vote is stored within wp_postmeta as a field. What I'd like to be able to do is see what the ...
0
votes
1answer
36 views

How can I group posts by date on frontpage?

For example; 20 September 2014 Post 1 Post 2 Post 3 19 September 2014 Post 1 Post 2 Post 3 18 September 2014 Post 1 Post 2
2
votes
2answers
78 views

Where is the old post permalink slug stored?

I published an article with permalink slug: http://domain.com/writing Then after publishing, I changed the permalink slug to writing-lorem. Now, whenever I visit /writing, it redirects to ...
2
votes
1answer
51 views

Limit function to specific post category

I have a function that wraps images in a custom div. It's placed in functions.php and modifies all posts. I'd like to know if there's a way to only apply it to posts in a certain category. Here's ...