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)

2
votes
3answers
28 views

how to make different style for page 2 in single.php

i want use different style fot other page in single.php or posts how to that this i use this code for add page in single <!--nextpage--> If another method is to add another tab to post'm ...
0
votes
0answers
8 views

WP-Ultimate-Search : order results by their content

I'm using the plugin WP-Ultimate-Search as a search engine. It searches through my articles, by tags. My articles don't have title, and I'd like to order the results by article's content. I'm using ...
0
votes
3answers
172 views

separate the post of a category by subcategory

I'm dynamically generating my category post by getting the Page title and match it with the category name. The category I'm posting sometimes has a subcategory now I need to separate this subcategory ...
2
votes
2answers
34 views

post expire after x days

I want to create a code snippet for expiration of post after x days from the post published date, I tried with this code but I always displays the true condition, what am I doing wrong? $pfx_date ...
1
vote
1answer
635 views

Custom Wordpress Theme: Publish Date and Display Date for posts right beside each other

What's currently happening is that for posts that have an 'update' time, the original publish and editor dates are rendering side by side (with no extra information in between, or even a space for ...
1
vote
1answer
18 views

Include sticky posts on the static page front page

I have a static front page that lists out news. Right now, it ignores the stickiness of a post, and justs lists it. I want it to work the same way as my blog posts page does. I want it to list out all ...
-1
votes
0answers
30 views

How to export CSV file for custom post type in WordPress without using plug-in?

I am new to Wordpress. I created the custom post types using Types plug-in and created some posts in that. Now I want to export the post as a CSV file without using Wordpress plug-in ?. Can anyone ...
0
votes
1answer
22 views

pagination on data fetched using SQL query

I am new with php and word press. I have a question that I am using a sql query in my posts to get data from my data base. Now the problem is that I have huge data on my post and I do not have idea ...
0
votes
1answer
18 views

store posts_id of category into a varable?

I have ten posts in my query that belong in three categories: cat-a,cat-b,cat-c. I'm looking for a way to store $posts_ids from each category into a variable. Say for example, if three posts are in ...
-1
votes
3answers
104 views
+50

Adding a blog archive with pagination using WP_Query

I have the following code:- <!-- News Archive --> <div id="news-archive"> <div class="row"> <div class="col-md-12"> <?php $paged = (...
1
vote
2answers
598 views

generate unique slug while inserting post

How can i create unique slug while inserting a new post.. I know i can query posts and compare the records to create unique slug but I want to insert a post with unique slug at the same time. Lets ...
0
votes
0answers
10 views

Two separate category blog excerpts on static front page

I currently have my main blog set up under a category and another category setup to give the illusion of two sep blogs on WP. The setup I'm trying to achieve is this. Front-page (static) -blog-...
0
votes
2answers
16 views

How to filter url on post submission?

I would like to swap out image URLs upon post submission on both content editor field and a custom field cover_image of a custom post type article. For example, the original content may contain image ...
2
votes
1answer
745 views

Invalid Post Type error when attempting to filter and Bulk Edit posts

WP 3.8.1 Posts Categories: News 1.1 Press Release 1.2 etc. Blog 2.1 Technology 2.2 Around The World 2.3 Eetc. "Invalid Post Type" example: Posts => Filter by "Press Release" + checkmark ALL + ...
0
votes
1answer
496 views

Using AJAX and PHP to load next post object

After looking through the jQuery documentation and many stackexchange community forums, I am still faced with this problem. Taking little bits from here and there have helped me get this far, but I ...
0
votes
1answer
574 views

Taxonomy Category category.php not working

I have created custom post type, taxonomy and categorys. When viewing the category it seems to be using index.php and ignoring the WordPress template hierarchy. Any ideas why category.php, category-{...
0
votes
2answers
871 views

Sort All Posts by Category Name in the Admin Panel?

I'm working on a pretty complicated site where everything is managed by category type including automatic spinner image submission, etc.. Unfortunately, its doggone difficult to manage things when the ...
1
vote
0answers
21 views

Transferring WordPress Database - Serialised data

I'm attempting to migrate data that is using a plugin (WordPress Job Board) to a new instance of a plugin (WordPress Job Manager). The plugins are storing data differently in certain parts of the data....
0
votes
0answers
43 views

Submit the form#post form via Javascript [on hold]

I have been working on a workflow for our lesser tech savy writers. They wanted things very spelled out, so I've created the below meta box and have hidden the publish meta box on an edit post page. ...
0
votes
1answer
567 views

How to get all inline images in post content?

I want to get all inline images in the post content. The get_children() method doesn't work for me because they could add the same photo twice. Also this only gets "attached" images, and they could ...
0
votes
1answer
624 views

wp_update_post creating revisions instead of updating the post

I have been trying to update a post in the posts table but for some reason, it is creating a multiple number of revisions but not updating the main post. I have been trying hard for the last one day ...
1
vote
1answer
24 views

Most viewed post for the last 2 days using WP_Query

Hello I have code intended to get the most viewed post for last 2 days and it seems like not working or maybe my code is just incorrect. I appreciate any help. Thanks. $args = array( 'post_type'...
0
votes
1answer
17 views

get_next_post() not working

I'm using get_next_post() and get_previous_post() in single.php. But the problem is it's not displaying Next post on all single posts. The previous post is displaying on every single page fine but ...
1
vote
1answer
25 views

Batch process: remove first image from post content

I already added a featured post image to all my posts (>1000). Some posts (around 700) still have an image at the beginning of the post content. Now I need to remove all images which are right at ...
0
votes
1answer
16 views

Custom Post Type by user

I made a Custom Post Type for events that can be added in the admin by only certain groups of users, like a Secretary. This Secretary can add some new events, but I want to display each user his own ...
0
votes
2answers
253 views

How to get images only attached from edit post page

I have developed a custom wordpress panel with a custom front-end recently. In single post pages there is a slider. I display the result of get_attached_media( 'image' ) function as the images of ...
0
votes
1answer
414 views

add bootstrap post slider with tabs

I'm trying to add a carousel with my post. UNder the carousel, some tabs with the post title. On click of the post title, it should change it the slide to display the related post. In " Static" in ...
0
votes
4answers
2k views

How to remove bulk edit options

Is it possible to completely disable Bulk Edit functionality? I'm using Wordpress 3.1.
1
vote
2answers
2k views

Display all months with posts and inside each month show the 5 latest posts

I need to display all the months that have active posts, and inside each month I need to display at least 5 posts that are tied to each month.. the HTML will look like this: News items <h6>May&...
1
vote
2answers
29 views

How can I make existing custom fields easier to edit/add in my theme?

A Wordpress theme I have authored uses Custom Fields on posts. There are about 5 or 6 custom fields to set when authoring a post, and my users have a hard time remembering what to enter for the name ...
0
votes
1answer
30 views

Wordpress display posts category in loop

I am working on a WordPress theme and this is my code to display posts. However I'm struggling to display all categories for a post. Most solutions don't work for me but do for others. That's also ...
1
vote
1answer
17 views

How to change wordpress dates to native language (even if the languge not available i wordpress)

I have a fully native language website ( Sinhala ). Content is fine and works with sinhala text. But unfortunately I cannot get the dates to be shown in Sinhala ( in posts new etc). Also I need to get ...
-3
votes
0answers
23 views

User submitted post, post URL problem

With user submitted post plugin I add post submitted successfully, but post URL is not working. I entered post URL in form but post title doesn't redirect it to post url. By default it redirect to ...
0
votes
1answer
1k views

When using Tribe Events Calendar, querying for a specific event category returns nothing

I'm still new to wordpress and I'm trying to write a plugin but for some reason this code is producing nothing. Why? I am completely stumped. I have followed the examples here to a tee. <?php /...
1
vote
1answer
1k views

How can a guest view the “Pending Review” Post?

When a user creates a new post it will have "pending" status. So I want the visitor (guest - not logged user) to be able to view "Pending" posts and vote it to "Publish" if enough "X Votes". Google ...
0
votes
3answers
581 views

HTML Inside of Shortcode Breaks Shortcode Output

Lots of Googling has still not yielded a solution. Here is the problem: I have created a custom Wordpress shortcode to use inside my Thesis theme. The goal of the shortcode is to allow users to wrap ...
2
votes
2answers
1k views

Wordpress Child Category Display All Posts

I am creating a Wordpress page where all my posts in the child categories of team are displayed in a grid. I got this working with the below code. The formatting and general layout is great however it ...
-2
votes
0answers
14 views

Posts 2 Posts Plugin Guidance [closed]

I'm making a doctor portal clinic website in which the doctor will have the WordPress dashboard in which he will be able to add the patient's details, prescription, etc For Patients and Prescriptions ...
-4
votes
0answers
24 views

Filter Ajax Dynamic Archives Custom Posts Always not Showing Correct Result

Hy everyones, I'm building filter search using multi select option, when I'm selecting the country and then result of filter search always show all posts Here is my template <div class="row"> ...
0
votes
3answers
1k views

Password-protected Posts lead to 404 Error

I was just testing the password-protected posts functionality and when I submit the password it sends me to a 404 page. The password I typed in was correct, I made sure. The URL bar says: www.mydomain....
-2
votes
0answers
21 views

How can I disable author and hide their posts?

I want to disbale authors and after that they gonna be hide such as their posts, media and etc. also on the contrary of above , when i active authors their posts display to every one Any idea?
0
votes
0answers
11 views

Adding images in widget based on post name!

I have a wordpress blog for products, each product has a unique ID and should have a photo demonstration! I have installed the blog added the products as posts! Now I would like to add a bulk of ...
0
votes
2answers
958 views

Insert data from custom created PHP page into wp_postmeta table

I am working with a Wordpress site and have created a custom page in /home/planmyme/public_html/php/ with the name response.php. On this page I am getting a value to insert in the wp_postmeta table (...
2
votes
4answers
2k views

How to display post tags

I'm converting an HTML template into a wordpress theme and I'm having some trouble displaying the post tags within the functions.php file. What I would like to do is add the following code into the ...
-2
votes
2answers
74 views

Onclick open posts displayed in slider in a popup

In the attached image, the posts are displayed in a slider style. When I click on post in the slider, suppose CArd5, then the details should of that post eg: the thumbnail, excerpt etc should be ...
0
votes
0answers
40 views

How to query all posts and only show the first 6?

I currently have the following code: <div id="news-archive"> <div class="row"> <div class="col-md-12"> <?php $args = array( 'post_type' =&...
0
votes
1answer
536 views

Custom wp_trim_words() function not trimming right

I have this custom wp_trim_words() function set to give me excerpts of only 20 words, and for the most part, it works fine. Except for some reason, on posts that contain lists, it outputs way more ...
1
vote
2answers
137 views

Filter only the text in the_content

I tried to filter only the text in get_the_content for my home page, but its including my shortcode also, because in that page first row google map 2nd row text box i am using visual composer page ...
0
votes
0answers
95 views

Post preview in iframe without saving the post

I aim to make a live preview inside an iframe of the current edit post. The preview should render the post content only. That's why I guess an iframe is actually a good idea. The frontend includes ...
0
votes
1answer
16 views

Get the category of post

I am on the single.php file and I am trying to get the category of a blog post which is either Blog or News. The reason I want to do this is that the website I am building has both a Blog and a News ...