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
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
29 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
6 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?
-2
votes
0answers
16 views

Display posts in a loop for bootstrap framework

How to show posts in a loops for bootstrap Here is the code I used <div class="row"> <?php if(have_posts()):while(have_posts()):the_post();?> ?> <div class="col-md-6"> ...
1
vote
1answer
14 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?
1
vote
0answers
9 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
7 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
23 views

Inner join overrides Advanced Custom Fields plugin's get_field

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
25 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

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
16 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
16 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
29 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
20 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
17 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
10 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
9 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
11 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
18 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
40 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
28 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
23 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
15 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
18 views

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

When open add new post or page Wordpress add post with ID=0 continuously. and instead of publish there is submit for review
0
votes
1answer
17 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
0answers
10 views

custom post type grid with content in lightbox

I'm going around every single wordpress plugin and impossible to find something with this featured . . . . I need a grid list of some custom post type - with inline filter. This is fine and tons of ...
0
votes
1answer
25 views

How to query Posts from a custom post type which contains a custom taxonomy?

I have the following: $queryResponse = new \WP_Query(array( 'post_type' => 'portfolio', 'tax_query' => array( array( 'taxonomy' => 'portfolio_date', ...
0
votes
0answers
8 views

How can you change all past posts' images to link to none instead of the image file?

I'm working with a new client who has a ton of existing posts. She has a lot of inline images and for some reason they all link to the image files. I know how to change this for future posts by adding ...
0
votes
1answer
21 views

Send post changes to set email addresses (not users or subscribers)

What I have I am using the "The Events Calendar" plugin on my site to coordinate a team of employees. I want to be able to send an automated email containing the body of an event post (post-type is ...
0
votes
0answers
46 views

Saving Post redirects to 404 page when php $_GET variable in post body

I am having a very annoying issue where certain posts redirect to 404 page when trying to save or publish a post. It only happens to a few posts and did not happen prior to the last few WP updates. I ...
3
votes
1answer
49 views

Why is the »_builtin« parameter not advised in »register_post_type()« for custom post types?

The parameter "_builtin" => true is a huge help for me, as this will set good permalink structure, like standard posts, for example: example.com/my_category/sub_category/POST-NAME instead of ...
0
votes
1answer
30 views

WooCommerce - Create Products Programatically

I'm writing a plugin that will automatically import products via JSON API. I need to programatically create/update products. I did a research and it seems everyone is using wp_insert_post() and ...
0
votes
1answer
22 views

How do I switch css class on post

On this dev site, I have a post that displays three items (under Coming Soon) and I would like to modify the class on the 'learn more' link at the end to display three different options, one for each ...
-1
votes
1answer
20 views

Automatically add custom taxonomy when meta value gets to a set number or beyond

Is it possible to add a custom taxonomy to a post when a meta value gets to a set number? Im trying to get it so once my post_views_count gets to 150+ it then gets the custom taxonomy trending added ...
0
votes
1answer
18 views

How to remove related post from home page

I am using thesis i am displaying related post using bellow snippet code.My problem is that i dont want load related post on home page.with the css trick we can make it display none but it loads so i ...
0
votes
0answers
11 views

Stop images from being displayed on the front-end of the site

I run a store with woocommerce on Wordpress, however there is an image called 'basket.png', and for some reason it has taken the link /basket on the site. Is there a way to disable all of the ...
-3
votes
1answer
21 views

I need social icons on each post

I would like to have social media buttons for Facebook, Twitter, Google+, E-mail, LinkedIn and Whatsapp on each post, authors must be able to select which social media icons have to be displayed and ...
0
votes
0answers
9 views

How i can custom link add new in post type Wordpress Admin Page?

I want to change link of add new button in post type. I used: function disable_new_posts() { // Hide sidebar link global $submenu; unset($submenu['edit.php?post_type=banners'][10]); ...
0
votes
1answer
19 views

WP::is_main_query() Not Working

I am Trying to add some content before the posts container I use this code add_action( 'wp', 'mainFunc' ); function mainFunc( $query ) { if ( is_home() && $query->is_main_query()) { ...
1
vote
0answers
52 views

Apostrophe in a possessive appears as an open-single-smart-quote instead of a closed one

Copy & paste the following in the html post editor: <em>John</em>'s Then click preview button and see the results. It will be: John‘s This is grammatically incorrect. It ...
-1
votes
0answers
42 views

Show only one subcategory

I am showing for my posts only subcategory, but some posts are in multiple subcategories. But I want to acomplish that each post will shown only one subcategory. For example my post is in 3 ...
0
votes
0answers
24 views

create a posts list in admin login and use it

I need to implement a custom related post type of section when someone open a wordpress post. But the list should be manually populate from the wordpress admin area. For an example, I will create ...
0
votes
0answers
10 views

Text with sub bullets not saved correctly

I'm having problems with sub list items. In my backoffice it looks like this (text is blurred): Visual: Text: In the text editor it looks good but when I save the post I get this in my database ...
0
votes
0answers
14 views

GUID to related post not in current language

I'm having problems with related posts and the link to them. I'm using the plugin Posts 2 Posts to create connections between posts. I also have three languages in wordpress website (french, ...
0
votes
0answers
13 views

Best way to filter posts being displayed on the fly

I got the following post structure: The search box is to illustrate what I want to achieve. CPT Videos: Videos being displayed in the image. CPT Artistas: Another post type for the artists. ...
0
votes
1answer
42 views

How to check if there are posts with the same tag

I have this code but I can't get to delete the div with the class otrasObras <?php $test = ""; $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { $test .= ',' . ...
0
votes
0answers
6 views

Posts assigned to one category disappear from the main feed

I have a fairly new blog site, www.MagneticPatriot.com. (New means it only has a few dozen posts.) There is a particular category I have on this site, "Web Development," that whenever I assign that ...
0
votes
1answer
17 views

meta_value timestamp older than now

In my wp_posts table I want to select the rows where post_type == event. I also want to a connection with wp_postmeta from the specific row. In my wp_postmeta table I want to do a where like this: ...
0
votes
1answer
16 views

Easy reading or transfer of data from posts?

Plugin usually transfer data using code like [espro-slider id=21] , is there a short way to read it or do they use regex to read it. If not is there a short way to define variable in post and use it ...