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

add one more publish/update post button

I'm here with a issue regarding my plugin... I've added a menu that should serve as a floating quick-action menu.. For example i would like that if you click the save button it will save the current ...
1
vote
1answer
24 views

How to handle broken links created by permalink/slug changes?

If I create a page with the slug "exams" and then need to change the page's slug from "exams" to "tests", any other pages in WordPress that link to the original permalink now have broken links as ...
0
votes
1answer
12 views

Meta boxes not saving

I have a custom post with two custom meta boxes that I add using this tutorial:http://wptheming.com/2010/08/custom-metabox-for-post-type/ When I update the post, it disappears. My code: function ...
0
votes
0answers
21 views

Display posts list in a table with search

I am new to wordpress, and I need to display a table in the frontend with list of posts and a search functionality. Is there any custom code to do both the functionalites(listing and search)? NOTE : ...
0
votes
2answers
20 views

problem with creating a wordpress post slider

firstly i know i have to add some code explaining what i have done before. But honestly i had tried more than ten tutorial concerning wordpress post slider based on flexslider or bxslider or other ...
0
votes
0answers
42 views

Fake post on the fly with ajax

I would like to generate one fake post on the fly in the admin panel. My aim is to use fake content to retrieve the_title(), the_content(),the attachement url,... I will use this to display different ...
0
votes
1answer
62 views

Posts per page, reverse count

Let's say I have 10 posts on my blog with a posts per page limit of 7, this is what I get: Page 1(home): 7 posts Page 2: 3 posts But I need this: Page 1(home): 3 posts Page 2: 7 posts I ...
0
votes
0answers
14 views

How to make two permanent categories that every one has to press before posting something [duplicate]

How to make two permanent categories that everyone has to press before posting something.
0
votes
0answers
21 views

Modify first post of any category page [duplicate]

I want to modify or add some text before first post of my few category page. How I can achieve this. Which filter do I need to use.
2
votes
3answers
56 views

Cannot access current post's ID in custom plugin

I have a plugin that prepends an upvote box to the_content of a single post, sends data via AJAX back to the main plugin PHP file and calls a function to update a database value on success. Here is ...
-3
votes
0answers
44 views

Post rating without plugins?

Is there any simple post rating snippet which will work when page is cached. There is many functions, for example this: <form method='POST' action=""> <input type=hidden name=rate ...
0
votes
1answer
48 views

How to Use PHP Code In-Page?

I am looking to create a dynamic Add-to-Cart button. The problem is that I need my server to dynamically create the "add-to-cart" URL. Currently, I have a static example built here at this link. ...
0
votes
1answer
22 views

Custom Select Query pagination not working properly

I have Custom Select Query joining two tables and displaying events older than current date. Everything works fine until I try to paginate it. <?php global $wpdb; $date = ...
0
votes
2answers
34 views

How do I limit the number of posts displayed to one?

I have searched Stack and the codex but can't find a simple solution for limiting the number of posts returned to one using the following: <?php query_posts('cat=24'); ?> <?php while ...
1
vote
0answers
18 views

Pagination with an array of post objects?

I am curious, I have the following code: foreach ($this->networkBlogs as $siteBlog) { switch_to_blog($siteBlog['blog_id']); foreach (get_posts() as $postObject) { ...
0
votes
1answer
11 views

Article content navigator in wordpress like mbaskool website

Is there any way to allow navigation in an article within same post in Wordpress. or any such plugins ? Because i searched a lot, but could not find a way. For example : Check this link ...
0
votes
2answers
38 views

Related Posts: Changing Function For Posts Per Page

I am working on dailysuit.de, which features 8 related articles below the content in every post, defined by some tags. Now I wanted to reduce the number of "posts per page" from 8 to 4. Of course, I ...
0
votes
0answers
17 views

Custom post types display pending posts without login

I am having an issue in a custom post type ('place'). I can view the posts like "http://www.example.com/?post_type=place&p=9454" while i am logged in as any user from the front end.But i cant view ...
0
votes
1answer
31 views

How to delete all the content of a wordpress site without deleting the Post and pages?

Is there any way to delete all the content of every post without actually deleting the post! Suppose , I have articles how to install wordpress ? what is wordpress . . . . and so on ...
0
votes
2answers
51 views

Show posts by author of membership level (Paid Membership Pro)

I am currently listing posts based on user role, with the following query: $ids = get_users( array('role' => 'author' ,'fields' => 'ID') ); $args = array( 'author' => implode(',', ...
-1
votes
0answers
23 views

search exact title

i need a way to search by exact title for posts. for example if i have a post with title "john doe" i need the result to appear only if the user searched for "john doe" , if the user searched for ...
-1
votes
1answer
24 views

What will be the best caching system for wordpress blog which has more than one million blog posts? [closed]

I am trying to optimize a wordpress site which has more than one million blog post. I have used ngnix as many of them have recommended as it is one of the best server. I am trying to find what will ...
0
votes
1answer
28 views

Add category selection to function request

Got the following in my functions file, which is designed to query the last three posts published, however I want to limit it by a certain category. I was looking at adding is_category to the WHERE ...
0
votes
0answers
54 views

Loop breaking after each category instead of posts-per-page property [on hold]

I need to have my menu page layout in this format Totally I have 67 posts so I want 3 columns in this way in first column I need to have 15 posts and in remaining 2 colums 30 and 30 all this columns ...
0
votes
0answers
14 views

Post doesn't appear in the taxonomy manage page

I'm using CPT UI to create custom post type named "Tour". Inside tour i have a taxonomy named "Sidebar". Inside Sidebar i have an item like this: As you see there's a post in that item. But when i ...
0
votes
0answers
27 views

ACF only getting specific custom field data

I'm new to this so bare with me if this doesnt conform to the usual standard. Basically I have recently been employed in a new office that builds customised wordpress sites for its clients, I am no ...
-2
votes
0answers
13 views

Hide post from google result when i type my url [migrated]

write now i'm in confusion & urgently needs a help. My website content is continuously copied by a new website. Sorry but i can't mention my site & the other site. I searched in google, how to ...
0
votes
1answer
53 views

Query Posts by Custom Field

I'm looking to query my posts via a custom field that I've created on my page. But the custom field is an array of values. So the custom field 'country' could look like this country => ...
0
votes
0answers
23 views

Adding description to wordpress blog post through wp-admin panel

Is there a way to add a description to my Wordpress blog post through wp-admin panel?
1
vote
1answer
16 views

Removal of Media Gallery pictures

When I delete pictures from the media gallery ,does it delete the photos from the post that has been published?
2
votes
0answers
26 views

JSON not valid after json_encode posts

I'm having problems saving JSON in a custom table in my database. I pull some posts (+ connected posts) from the database and add them to an array. This is a part of my array: array(2) { ...
0
votes
0answers
16 views

How to sort search results with a specific category first

I'm using the Zoner theme for Wordpress and would like properties categorized as "featured" to be first on the search/archive page. Is there a way to run the search query twice, such that the first ...
0
votes
1answer
33 views

Inner join overrides Advanced Custom Fields plugin's get_field [closed]

I have this search that I made with inner join and where clause. I no longer get get_field() values, they all return false. How can I get ACF to work again? It must be something silly that I don't ...
0
votes
1answer
29 views

structure of posts and pages

I have wordpress website which had some static pages and posts. I want to show pages URL as below: mywebsite.com/PageName1 mywebsite.com/PageName2 ... also I have some posts that will be more in ...
-1
votes
1answer
26 views

Display draft posts on single pages [duplicate]

I made my published post as draft post. It is not showing it in the website blog, but, when i use its URL it is showing "Error 404 - Not Found". but what i want is to show the content of draft post ...
0
votes
1answer
26 views

how to edit a specific post slug using a php code?

I want a php code by which i can show a modified link to the post. when using <?php get_post_permalink(); ?> it shows e.g.: (www.mysite.com/post-name-one). what i need is something like ...
0
votes
1answer
21 views

Assign published posts to another user automatically

Usually, I write posts as admin, as this is more comfortable from the blog administration point of view. But I want the posts to be assigned automatically to another existing user with editor ...
0
votes
1answer
37 views

Add delay to publish post

I am running multiple servers and have an issue when people Publish a post immediately after uploading a Featured image, the image is is not available on all server immediately. I know that I can ...
0
votes
0answers
26 views

How to change post template via url?

I have a single post template (single.php) which displays the title, the abstract, tags, content etc. I made another template (abstract.php) to display only the title and the abstract of the post. ...
-1
votes
1answer
27 views

Notification When Post Approved

Does anyone know of a notification plugin, snippet that will allow me to when i approve a users post they get a notification show up on the menu, and when they go to the notification page it says ...
0
votes
0answers
4 views

Gallery attached to a post but outside it (my-post-url/my-gallery)

I want to create a post gallery related to a WordPress post, but outside it, for example: my-post-url -> Display my post. my-post-url/gallery -> Display my galelry.
0
votes
0answers
12 views

next post link in same category

Regarding https://codex.wordpress.org/Next_and_Previous_Links the following code should display post in same categories if post are registered in more than one category. Unfortunatly it does not work ...
0
votes
0answers
14 views

How to find URL for post type listing page?

How to find URL for post type listing page I want to get this URL on my post details : http://localhost/wp/ABCPROJECT/stories/amet this is a listing page And this is a it's details page how can i ...
0
votes
1answer
19 views

Get posts in all languages

I'm trying to retrieve posts in all languages for my rss feed. This is what I have now: $langs = qtranxf_getSortedLanguages(); // get posts in all languages $posts = get_posts(array( 'post_type' ...
0
votes
1answer
25 views

Custom Single Post Type not referring to single-post-type.php File

I've defined a Custom Post type called "Press", I'm trying to modify the Single Posts template for that Custom Type. The single posts custom file is called "single-press.php" I've tried using an if ...
0
votes
1answer
47 views

How to call post title and post summary to other part of site?

My blog is installed at /posts of my site. It's not a mistake; I wanted to be like that. But now my homepage looks somewhat empty. Here I want to call the title of my blog to my homepage, with a ...
0
votes
1answer
41 views

WP Query to Get Array of Slugs

So I will be using a template where posts have related products (woocommerce) as defined in the custom fields. I've just got a load of slugs and I dunno how I can query the array of slugs. Heres what ...
0
votes
1answer
26 views

Insertion of a non-english string to database

How can i insert a non-english string (like persian) to a tabale in Wordpress database? When i insert the persian string, It shows with "??????" character in the table? This is the code: -Creating ...
0
votes
0answers
64 views

WP REST API returns post image URL with double backslashes

I'm trying to create a mobile application that use WordPress as a backend CMS, i was able to get the JSON output using WP REST API and reuse what i need from the output in my application, but i have a ...
1
vote
1answer
25 views

When open add new post or page Wordpress add post with ID=0 continuously [closed]

When open add new post or page Wordpress add post with ID=0 continuously. and instead of publish there is submit for review