Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [posts]

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).

0
votes
0answers
16 views

How to prevent post update using transition_post_status

I am building an application using WP REST API. Ideally, users are able to post only if they have a subscription. Here is how I plan to make things work: Set expire_by user meta when they sign up. ...
-1
votes
1answer
27 views

First post in loop displays twice

I have created a wp_query where I change the post format after every 4th post. Unfortunately, the first post is displaying twice which is surely something wrong with my modulo conditions. I appreciate ...
0
votes
0answers
7 views

Next and previous post for same category in theme Twentyfourteen 2.6

In old version of theme Twentyfourteen, I could get next and previous post for same category by changing like this in template-tags.php: $previous = ( is_attachment() ) ? get_post( get_post()->...
0
votes
0answers
14 views

Show categories not in gallery post format

I want to show all blog categories that aren't of type gallery. My code almost works but if I have 2 posts in the same category the category is shown twice ie: If I create a category called 'news' ...
0
votes
0answers
9 views

Disable “Tips” popups when writing new post [duplicate]

How to disable "writings tips" when creating new post? This is first tip: Welcome to the wonderful world of blocks! Click the “+” (“Add block”) button to add a new block. There are blocks ...
4
votes
1answer
20 views

RSS for Pages Instead of Posts?

I'm trying to set up RSS. However, all the pages on my site are pages, not posts because the SEO is better (all my content is relevant regardless of publish date). My RSS feed isn't working right ...
0
votes
1answer
8 views

Dropdown Select Post Filter

I would like to display the posts when I click on an item with the dropdown select Currently, my select is OK, all my terms are displayed and all posts too. I just want to know of it's possible to ...
-2
votes
0answers
7 views

Fill svg with thumbnail [on hold]

I try to fill an SVG with an image using pattern, like that : <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 370.75 318.57" preserveAspectRatio="xMinYMin meet"> <defs> &...
0
votes
0answers
20 views

How to add a remove function?

this is my code. class MP3DLlinksMetabox { private $screen = array( 'post', 'page', ); private $meta_fields = array( array( 'label' => 'Direct ...
0
votes
1answer
14 views

Blogposting Schema & Structured Data without plugin

I would like to add blogposting schema markup so each new post is automatically optimized for rich data. Some code on the web is messy and needs updates per each post, also plugin is not best option ...
-1
votes
0answers
16 views

Ellipses and Read more

I have my recent posts on my home page and after the excerpt there are ellipses. What is the purpose of these please? I thought I should be able to click on the ellipses to show the rest of the text ...
0
votes
0answers
15 views

I want my category (archive) pages to mimic the structure/style of my Posts (home) page

Theme I'm using is easymag-pro. I will paste both pages below. I know I have to replace the archive.php with my home.php, but I need to add something to the new archive page so it will pull the posts ...
0
votes
1answer
74 views

Post Preview Is Redirecting To https://letstakemetoad.com/ad-request?source=n100 [closed]

I just finished writing a post and wanted to preview it, but the page is continuously being redirected to https://www.aperturebuzz.com/?p=4169&preview=true which is phishing website according to ...
0
votes
1answer
13 views

Order posts inside bootstrap card columns

I have a bootstrap 4 card columns masonry like grid. I want to show six posts form my articles and I'm using a custom query to retrieve the posts. All works fine, but the posts aren't showed with the ...
-1
votes
0answers
20 views

How do I add data from a MSSQL database to a Vehicle Listing Plugins DB?

How do I add data from a MSSQL database to a Vehicle Listing Plugins DB? I would like to find out how can I push data from my MSSQL database to a vehicle listing plugins database to keep the listing ...
0
votes
2answers
19 views

Save ACF with a save button on a post

I need to save advanced custom fields data before calling another function on the post. One way I thought of doing this is to add another button (near the fields) to save the post. Is this possible? ...
-1
votes
0answers
13 views

Post filter with categories with issues

I have the issue that I want to filter my post with the categories, but when I do it, it only shows the post content from the first post and the rest is just super large photos, also the post's info ...
0
votes
2answers
36 views

Get post number both in the loop and in the post

I have a post type that is essentially a photography zine. I want each post to display in the archive page as an "issue" with a number associated, from oldest to newest. The first issue would be "...
0
votes
1answer
14 views

Imported Posts missing summary text on staging site

I used WP Settings' native export (from production site) and import (to staging site on subdomain) for several months' posts. The imported posts are not showing a summary/excpert on the homepage feed....
0
votes
1answer
13 views

Display post count on archive page in reverse order

I'm displaying some posts and I want each of them to display a post number. The first post being number 1, the most recent post being 10 (let's say there's 10 posts.) I'm currently using <?php ...
-1
votes
0answers
12 views

Change Permalink Settings causes Publishing failed

Newbie to Wordpress here. After I change permalink settings to anything other than plain, new post turns out "publishing failed". Have tried to change my links from http to https, still not working. ...
0
votes
1answer
10 views

How to pull date/time in french format for wordpress post?

I am working on a wordpress post in which I want the date/time in frech format as shown below: ENGLISH By FJ Published April 9, 2019 at 4:05 p.m. Last updated April 9, 2019 at 4:14 p.m. FRENCH Un ...
3
votes
2answers
36 views

How To Have Two Gutenberg Editors On One Post?

I am currently at a dilemma where I have a design where there is a sidebar to the left taking up 50% of the width of the screen(this sidebar area is pulling data automatically based on the post, so ...
0
votes
1answer
23 views

Force fill all fields when creating a new post

How do I force all fields to create a new post? If a field (such as a category or title, etc.) is not filled, an error message will be issued Thanks for help
1
vote
1answer
17 views

Ajax posts filter by date, comments, top views, top likes

I'm trying to create a simple Ajax posts filter, It's working with date and comment but not working with the top views or top likes. So, how can i make the isset( $_POST['top-views'] and isset( $...
0
votes
1answer
24 views

Delete attached images from posts

I exported posts from site X to Y. But in every post on site X there was image attached to it (not featured image) <a href="http://x" rel="attachment wp-att-25425"><img src="x/wp-content/...
0
votes
1answer
27 views

Remove Featured Image & All Media Uploaded to the Post

I found a solution of removing featured image related to the post when delete the post from this article but, I want to remove all the uploaded media also with post removing. Delete all WP image ...
-1
votes
1answer
14 views

Auto post creation

I've a problem in wordpress that I find automatic posts getting created.. I couldnt figure out what is causing that.. Is this can be from a plugin? You can see in the picture an example of those posts ...
-1
votes
1answer
30 views

Plugin to display text before a post

I am trying to display some text before publising post.When i add post i am getting error as Publishing failed my code is function adddata(){ echo "Welcome to my post!.........."; } ...
0
votes
0answers
9 views

Search post status in ALL POST backend admin [on hold]

Iam use plugin Admin Columns to display status of post https://wordpress.org/plugins/codepress-admin-columns/ But now I want to search status from Search Posts ? How to do it !
0
votes
1answer
10 views

Unable to edit or post after enabling SSL

After using certbot to enable SSL on my server, I'm unable to edit or create any posts on my wordpress site, any attempt to results in an "Updating failed" message Attempting to preview posts leaves ...
0
votes
1answer
16 views

Cannot save pages after migration

Recently I've received a task from my clients to improve their company page. I've migrated the page to my VPS and made some modifications: added new content updated Wordpress updated plugins ...
0
votes
1answer
18 views

Exclude posts in a category on one page but show those posts on a different page

We have a lot of blog post categories, and posts belonging to all but one category should show on the blog page. The other category should show on the Case Studies page. The solutions I've found make ...
0
votes
0answers
9 views

Intermittent “You do not have permission to edit” showing up when posting

Sometimes (about 1 in 10 for me, more often for others) the alert shows up that says You do not have permission to edit when trying to save a post as pending, a draft, or publish it. User permissions ...
0
votes
0answers
32 views

Single post shows post three times

Not sure exactly what happened, but my site shows the single post content multiple times. Example. Reinstalling the theme didn't help. Also, it's not happening with any other theme, only with the ...
0
votes
1answer
32 views

Loop doesn't show title of second post and posts thereafter

I have a problem with my code, somehow. It worked fine before and now it seems that Wordpress does not show the title of the second blog posts (only the first blog post seems to work fine really, ...
1
vote
1answer
69 views

“before delete post” action fire when the post is updated?

I'm trying to create notifications only when I deleted published posts, but it fire when I update any published post? What I'm doing wrong! Thanks. function deleted_published_post_notify_author( $...
-1
votes
3answers
40 views

Deleling wordpress posts permanently still have IDs

Example: Right now I have 100 posts. If I add a new post it will have ID 101. If I delete all the current 100 posts the new post will still have ID 101 when it should have 1 or 0. How can I delete ...
0
votes
1answer
21 views

What permissions does a role need for the user to be assigned as the author of a post?

I have a Wordpress site with custom roles (except for administrator) and now wanted to create a role so that a user with this role can be manually assigned as the author of a post. I thus created a ...
0
votes
1answer
19 views

How publish post from pending status

wp_publish_post() function not work correct, because need to generate url and define author. Post added via User Frontend Pro plugin. Posting via admin panel works correct.
0
votes
0answers
13 views

Pagination not working — custom theme code

I am a "null" when it comes to PHP and I need help fixing this code. Don't have support for the theme anymore. Page affected: truustudio dot com/journal if ( ! function_exists( 'lobo_pagination' ) ) {...
0
votes
1answer
17 views

Develop Admin Panel Page

How to develop a Admin Panel Page in WordPress DashBoard like All Posts page ?
0
votes
1answer
22 views

How to add convenient buttons for new custom post statuses

I add new post status via this code in functions: function custom_post_status() { register_post_status( 'spam', array( 'label' => _x( 'Spam', 'post' ), 'public' => false, ...
0
votes
1answer
13 views

Hide or remove custom post status

I want to hide or remove a custom post status when it is set to a specific one. e.g. If I have a post set to status "pendingreviewf" I want to hide the option to change it to the status "shipedf" ...
0
votes
1answer
28 views

Send Notification after post published was working but stopped after the last WP update

I'm just wondering why this snippet stopped working! It was working before the last WordPress Update! I'm using DW Notifications plugin and work without any problem in another functions. There are ...
0
votes
2answers
13 views

Get an array wich contains the post_name of every post that has the custom post_type “pelicula”

I need an array that contains all the posts names that match with the post_type"pelicula"
-1
votes
2answers
23 views

Problem of encoding characters (apostrophes) in my posts publications

I currently have a big apostrophes problem when my articles are published on my website, because for an example of a word like "l'associé", my article is published with characters that replace the ...
0
votes
0answers
23 views

blog archives and search issue

this is my first blog, I have no experience so this is conglomerate of code that I found on stackoverflow etc. I want to ask is everything correct? archives and search results are wrong. any ideas ...
0
votes
0answers
21 views

MYSQL SQL syntax error on Wordpress Posts page

I see the following error on my Wordpress Posts page when I enable debugging. I only noticed this when I started adding categories to my posts and they were not saving. I never used categories before, ...
1
vote
1answer
24 views

Copying and pasting emoji in a wordpress post

There's this site that allows to copy and paste emoji's https://getemoji.com/ If I copy and paste from there into my posts will it work everywhere? Is it something like Font awesome? To use them I ...