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
8 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
11 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
23 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
17 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
14 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
3 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
9 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
7 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
10 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
17 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
0answers
18 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
24 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
20 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
12 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
16 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
16 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
23 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
19 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
42 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 ...
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
21 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
50 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
9 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 ...
0
votes
0answers
17 views

Admin panel Thumbnail style cropping for custom post thumbnails?

You know how WordPress allows you to choose the cropped area to display on the by default 150x150 thumbnail size? Is there a way to add your custom thumbnail sizes to the admin panel in the same way? ...
0
votes
0answers
12 views

WP Query for newest post of each taxonomie of a custom post type

I'm trying and googleing since 2 days, but cant figure out how I can display my 8 needed posts. Details about my structure: I'v created an custom post type "projects" where all the posts about ...
1
vote
1answer
25 views

Hide Post comments when displayed via WP_Query

I've written a shortcode which displays 'x' number of posts on the homepage of my site when I write [blog posts_per_page-"3"]. Here it is: function getBlogPosts($atts) { ...
0
votes
0answers
8 views

User roles: edit_post set but custom post type & posts not editable

I have a custom post type with the capability_type of "post". I then have a new user role with the following set: 'read' => true, 'edit_posts' => true, ...
0
votes
0answers
10 views

Linking categories and assigning posts in bulk

I am looking for a way to link categories in such a way, that e.g. if you assign few posts to a category, they will automatically be assigned to another category which is linked to the first one. Here ...
0
votes
0answers
30 views

How can I convert this SQL query to delete duplicate posts by specific meta_value instead of post_title?

This query works exactly as it should to DELETE all duplicate posts by post_title for my custom post type: $sql = " DELETE a.* FROM wp_posts AS a INNER JOIN ( SELECT ...
0
votes
1answer
55 views

How to show posts rank based on custom field value

I have total 100 posts, 10 posts in each page on homepage with paginatin. Here is my code $args = [ 'posts_per_page' => 100, 'fields' => 'ids', // Add additional args here ]; ...
0
votes
1answer
23 views

form $_post action value gets truncated after it passes through two forms

There are three pages page1, page2 and page3. When I press submit on my first form on page 1 my group name field can be catched with $_POST['groupname'] in the destination page but in the page 2 I ...
0
votes
0answers
15 views

Passed variable gets undefined variable error on insert on next page

I am passing a variable with $_POST to another page and on the destination page I want to perform an insert operation and want to use that passed value . The variable "$mygroup" is coming from a forms ...
0
votes
0answers
10 views

Get adjacent post data, ordering by custom field values (by Wp-query?)

I want to build a custom version of the adjacent-function of wordpress post. I have two custom field values for each post, my layout is the following: metafield1 value 1 & metafield2 value 1 | ...
0
votes
1answer
39 views

How can I extract the URL of a link from a post?

I am pretty new in WordPress and I have the following doubt. I have a page that take some informations from a list of post that belong to a specific category and show these informations into ...