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

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Wordpress Classic Editor is removing image captions

we noticed that on our Wordpress (5.7) image captions are removed after we open post in the editor and change something (or only switching to HTML tab and back). This part is removed: [caption id=&...
0
votes
0answers
7 views

User Post Gallery WordPress Plugin [closed]

Is it possible to let users view only their posts via User Post Gallery plugin (UPG) ? I have a website that let users upload images on the website and the plugin creates a page where all users can ...
0
votes
0answers
7 views

Related Video Post by Custom Taxonomy “ Actor”

This my Related Video Post Template by categories. wp_get_post_categories( $post->ID ), 'numberposts' => xbox_get_field_value( 'wpst-options', 'related-videos-...
0
votes
0answers
10 views

Prioritize search result to show matching exact result

Suppose I search "TA" on wordpress query, the results show the posts with words containing "TA" first, like sTAnd, I want to display exact word "TA" first then words ...
0
votes
0answers
10 views

Text within Posts suddenly not displaying correctly/in full [closed]

I've recently updated to WP 5.7 and the most updated version of the Genesis framework, and all of a sudden the text on my blog posts is not displaying correctly. As visible in the screenshot below, it ...
0
votes
0answers
10 views

Duplicate an elementor Post via API

I have a special context right here ! I'm using a java App to manage data. My main goal is to use the wordpress to display information, and use the app to work with data. What i'm trying to do right ...
0
votes
1answer
17 views

Set a Posts default visibility to 'private' in Guttenberg?

I am trying to set a Posts default visibility to 'private' when a user first creates the post. They should then have the ability to manually select 'published' from the sidebar dropdown once they are ...
0
votes
0answers
11 views

wordpress last revision disabled

HI I need to restore the last revision of the wordpress but it is showing as disabled but it is showing as diabled the version before it are showing as enabled I need to restotre the last version is ...
0
votes
0answers
6 views

Migrate Gallery data from plugin to custom post type gallery

I am working on a Client's ongoing project, where they are using Awesome Gallery and Idea Gallery plugin to display galleries in the post. They want to use one custom gallery and migrate all the ...
0
votes
0answers
13 views

wp-insert-post execute from server?

I wanted to ask for help. I am working on a project to develop a program to publish a post to many wordpress sites that aren't on a multisite network but are all on the same server. the requirements ...
0
votes
0answers
16 views

Sticky Post Doesn't always work

so i have a blog and i want to make a post a sticky post that stays at the top. But for some reason, on the home page where i only display 4 posts, the sticky post doesn't work when the sticky post ...
0
votes
0answers
19 views

I want to display the most visited posts in the last 24 hours using Elementor [closed]

Is there a way to display the most visited posts in the last 24 hours/day/week/etc? especially last 24 hours. I'm using Elementor and could use a query.
0
votes
0answers
14 views

Adding custom taxonomy to DEFAULT post permalink structure

I'm trying to use the default post type for news-like articles on my site, but want to modify the post permalink structure to include a custom taxonomy. I'm currently using the default category ...
0
votes
1answer
16 views

Only Show Element On Latest Post

I will be publishing blog posts at midnight every day, and will be placing a button at the bottom of each post for readers to "mark as read". However, I only want this button to show on the ...
0
votes
1answer
52 views

Wordpress doesn't save or publish new posts

This problem started when I wanted to create a new post. I'm using the Elementor editor, so I created a new post, set the title and featured image and then clicked on "Edit with Elementor" ...
1
vote
0answers
11 views

Can't delete Draft Post

I am new to wordpress and was happily blogging along when I ran into a weird issue. I tried uploading a gif into the draft and the editor crashed. I refreshed the browser and then found that I couldn'...
0
votes
0answers
24 views

Make Breadcrumb Category Not Clickable

i would like to make the 'Post' Category i added not clickable in the breadcrumbs on the single post pages. the Post Category shows in the breadcrumbs, and i want it to not be clickable(or change the ...
0
votes
0answers
21 views

Check if almost 10 year old - working code is up to date

I found the following code and tested it on my site. Works fine. But im not sure if the code is up to date because the last few years so much has changed on wordpress. Thx for your feedback and ...
0
votes
0answers
17 views

Italics in title resulting in weird HTML

I'm creating a website for an author/journalist who will frequently need to italicize words within the Titles of his Posts. I have suggested a rather shabby workaround to this persistent Wordpress ...
0
votes
1answer
16 views

How can I pass form entry to another form on a new page

I have a sign up form on my homepage and would like to capture the user's entries and have them populated into the customer registration form on a new page. Is there a way to do this in WordPress?
0
votes
0answers
19 views

Post template with breadcrumb needs to show page navigated from

I have a custom post type, Reports, that contains many categories (custom taxonomies). These posts are organised in menus on different pages. So a menu page named "Best Reports" would have ...
0
votes
2answers
26 views

Wordpress query undefined offset in loop

I created a query with arguments see blow. On the page I see an error in a loop Notice undefined offset 1 Notice undefined offset 2 Notice undefined offset 3 and so on... $args = array ( '...
0
votes
0answers
21 views

Yoast breadcrumb URL shows category instead of the page

I have setup Yoast breadcrumbs in my category pages en posts inside that category page. Category page: home/diensten/ Post page: home/diensten/support/ When I want to navigate back from the support ...
0
votes
0answers
12 views

WP User Frontend Post Form glitch

WP User Frontend Post Form somehow shows a completely messed up UI of a form. It is supposed to look like this but instead - when I visit the page - this is shown What is the issue here and how do i ...
0
votes
0answers
16 views

Updating post count on admin page after pre_get_posts filter

After the pre_get_post filters out the past posts, the number of posts above the page is still the original count of all posts (custom post types). How can I update that number so it'll correspond ...
0
votes
0answers
27 views

Display post according to parent categories and child categories

I got a task of developing an Informative site and I have some issues in displaying information about products according to categories. I have added the product details as post and need to display ...
0
votes
0answers
17 views

Not to repeat similar post

welcome everybody ... How can I not repeat the post except for the author This is my code: <?php $you_likes = get_posts(array( 'post_type' => 'recommendations', 'meta_query' => array( array( ...
0
votes
0answers
22 views

Disable Wordpress URL by ID number

I have a post URL like this: https://domain.com/cpt/post-item/ which has a post_id: 1234. But if I change the URL to this: https://domain.com/cpt/1234/ or this https://domain.com/cpt/?p=1234 or this ...
0
votes
1answer
10 views

Post Image Gallery After Content Function messes with other content

So i made a blog with posts, and I used this code to display a shortcode gallery under the content in a post. The problem is, now the "All Posts" Page has no posts in them. And I think its ...
0
votes
0answers
10 views

Embedding Post Editor Into External Site

I want users of my spring boot site to be able to write/edit posts from the spring site itself using the Wordpress editor. I have found that there are ways to use the Wordpress API to post the content ...
0
votes
0answers
22 views

Change featured image lightbox image size to full size

So i made a blog with posts with image galleries, and i would like to make the featured image lightbox full size instead of the smaller size it is now. I already did this with the images in the ...
0
votes
1answer
34 views

Very complex post query

I need to create a very complex post query, but I don't know if such a query can exist, or if I have to write PHP code to combine the results of two different queries... Let me please describe the ...
0
votes
0answers
5 views

Gallery Shortcode after every single post content

I have a blog with posts, and i want to return my gallery shortcode after the post content. I want '$after_content' variable to be the gallery shortcode. functions.php: add_filter('the_content', '...
1
vote
1answer
20 views

How can i display gallery shortcode output under Post text

so I have a shortcode for a gallery I'm using in the Single.php file for the single post pages. The problem is that the gallery only shows either at the top of the page, or at the bottom. I would like ...
0
votes
0answers
7 views

Custom Post type editing: where has my publish button disappeared?

I run a Wordpress website with a lot of Custom post types, where I customized the interface so that contributors can easily do what they need. When editing a given post, widgets appear on the second ...
0
votes
0answers
11 views

Add a current user/author post to sub menu

I wish to add a current user's custom post to a navigation sub menu. I have a custom post type called Member. Each custom post will be assigned to different users where they can add and edit their ...
0
votes
0answers
17 views

how to do wordpress ajax post

I'm using Wordpress code snippet plugin to write my javascript codes. as I'm pretty new to wordpress coding, I tried doing an AJAX post that saves some data to a database table I created (inserting ...
2
votes
0answers
18 views

How do I add a reusable block to a programmatically created post?

I am using WordPress for documenting a project. To lighten the workload, I plan to run a script to build a big old index of things. For example, "files that call function_x", or "files ...
0
votes
1answer
12 views

How do I add /blog/ on my permalink without affecting the portfolio project types permalink?

I already know that you can add /blog/ on the custom structure under permalink settings. However, when I do that, it also applies to the permalink of my portfolio project types like this: domain.com/...
0
votes
0answers
16 views

Add data attribute of post_id for Internal links

I noticed that internal links to other posts have data- * Attribute. One of Post ID. And the other of Post Type. (As in screenshot). The problem is, it's only in the block editor (Gutenberg). And not ...
0
votes
0answers
18 views

How to get Images post ID (to use with Enfold gallery) [duplicate]

I made a blog with posts, and i would like to show the attached images in a post in a gallery in the single.php. But I get this error when opening a post.. A critical error has occurred on this site. ...
0
votes
0answers
12 views

How to make a post parent hierarchy list

I want to do it like on the udemy platform, when I click on the post, sub-posts will be opened as an accoridon.
0
votes
0answers
27 views

Single Post Gallery Using Shortcode

So i made a blog and I would like to put all the images in a post in a gallery/slider. I'm using the Enfold Child Theme so I looked up the gallery shortcode and made this function in the single.php(...
0
votes
1answer
21 views

Change post author without using wp_update_post()

The standard or more obvious way to change a post author in WP is to use the wp_update_post() function, as shown in this question. But I am having an issue, described as follows: // Inside the ...
0
votes
0answers
11 views

How to scroll to post title

How I can scroll to post title? I have front page where I can see latest posts and if user clicks it opens post page and I want it scrolls to title. Because every page I have hero video.
0
votes
2answers
21 views

How to display the custom post related blog by category?

I am using WordPress and I have to show the related blog by category. I have created a custom-type post. I tried the below code but the code is displaying the last category of the post. Would you help ...
0
votes
0answers
8 views

Display post from category choosen by user only

Upon Registration, I will ask the user about their interest say " did you like chess, football, cricket, Mathematics etc.. The user will choose a few options from there. After that, on the blog ...
1
vote
0answers
8 views

Hiding Draft Post In Admin

Does anyone know of a way to hide draft post so that when "All" post is selected, draft post is not included? I tried adding this code to my functions.php file but it lead to an error, I'm ...
0
votes
0answers
13 views

OrderBY meta_key_value including null value

I am trying to do a simple query in wordpress ordered by a meta_value_num of a custom field, the problem is that not all the inputs have a value so it gives me a null value and it does not show very ...
0
votes
1answer
19 views

Please help a newbie with blog page issue?

https://diarmuidoconnorbooks.com/home/?p=1561 https://diarmuidoconnorbooks.com/home/?page_id=1355 The first link is to my post’s permalink. The second is at it appears when you go to the website’s ...

1
2 3 4 5
115