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
2answers
16 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
6 views

Display post from category choosen by user only

Upon Registration, I will ask user about their interest say " did you like chess , football , cricket, Mathematics etc etc.. user will choose few options from their.. after that, on the blog page ...
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
12 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 ...
0
votes
1answer
13 views

How do I assign an attachment to a post using only the REST API?

I am able to create a new post by sending a request with cURL against the REST API. That works fine. I am also able to upload files into the media library with cURL via the REST API. The uploaded ...
0
votes
0answers
10 views

want to show post or blog of one(A) wordpress site to another new(B,C,D) wordpress sites , take filter by site name i.e A,B,C Using ready pluggin

want to show post or blog of one(A) wordpress site to another new(B,C,D) wordpress sites , take filter by site name i.e A,B,C Using ready pluggin please suggest ready pluggin or custom code Thanks in ...
0
votes
1answer
23 views

Show metabox value last post excerpt, title and link

I'm facing a problem I can't solve. I'd like to get the excerpt, title and link of the last post containing a particular meta-box button status. For example: I would like to retrieve the last post ...
0
votes
2answers
19 views

How to insert custom text after H1 to all my blog posts?

I'm looking for a way to insert "THIS ARTICLE MAY CONTAIN COMPENSATED LINKS. PLEASE READ DISCLAIMER FOR MORE INFO." after the H1 in all my blog posts (not pages). Is there a way to do it ...
0
votes
0answers
9 views

Posting an article containing mathematical symbols and R code

I have been trying to figure out the best workflow to publish articles heavy in R code and R output and mathematical formulas. I would like to be able to finish the entire report in RMarkdown ...
0
votes
1answer
12 views

WP Forms not displaying,becomming an fatal error

This is what i become after insterting a WPForm in Wordpress Fatal error: Uncaught exception 'Exception' with message 'There is no suitable CSPRNG installed on your system' in /var/customers/webs/...
0
votes
0answers
5 views

How can I prevent users from commenting on a post after that post gets a specific number of comments?

I'm trying to figure out a problem I have. I need to prevent my users from commenting on a post after that post received 15 numbers of comments. In a way I want to set the maximum number of comments a ...
0
votes
0answers
9 views

show it to members when there is a new post

I prepared a code, it works when there is a new post, but how do I show users that it is +1 each time a post is made, and if the user clicks on the list of posts, it will be deleted, then it will ...
0
votes
0answers
9 views

show category list with images of associated posts

any way to display a list of categories with a single image of any post associated with that category? i have this code: $categories = get_categories( array( 'orderby' => 'name', ...
0
votes
0answers
10 views

How to create loop of posts except post ID defined via ACF field

I am creating a custom news page with two columns - 1st column - featured post - using a ACF text field to add post ID to show, ie: 12345 - works fine. 2nd column - remaining news, showing all other ...
0
votes
0answers
7 views

Is it possible to prevent authors from commenting on their own posts?

I'm trying to find a solution to a problem I have but didnt get any luck so far. I dont want my authors to comment on their own posts. But It's okay for them to comment on other authors' posts. Is it ...
0
votes
2answers
53 views
+50

Menu Items disappearing/being empty on save or post edit

I've been having this weird issue on a site for a few weeks now, tried everything I found by searching but still not being able to find a clue of the issue. Whenever I add some items to the Menu (...
-1
votes
0answers
23 views

WP_Query - Bug with multiple post types

I'm creating a WP_Query, and I need it to get multiple post types, and it's working REALLY strangely. I have 3 post types: 'equipo','accion' & 'publicacion'. And my code looks sth like this: $args ...
0
votes
0answers
18 views

Alt text attributes not showing over portfolio images

I´ve been searching almost all posts regarding this issue but haven´t found a solution for my theme. Maybe there´s a kind expert mind that can support me. I´m using a theme that doesn´t allow updates ...
0
votes
0answers
9 views

Wordpress: posts and categories not created by me but visible online [closed]

i have a little problem, i see on line page with url composed of my site name / category and post which I have never created and do not see in the control panel. This post contain more comment with ...
0
votes
1answer
34 views

Filter Custom Post Type by Category with Ajax

I've used the below tutorial for my WordPress site to add a filter to one of the pages. https://www.youtube.com/watch?v=KRc47o8uDhk&list=PLSeCxQ7f7r87qbYmqXmOAcvoshw1e6ewQ&index=3 It works ...
0
votes
0answers
6 views

how to save data of a new field in WCFM store manager

I added a new number field in store-manager WCFM in the product manager, and now I want to save the value of that field and for that I used the function save_add_product_meta, but it doesn't work... ...
0
votes
1answer
9 views

Show single post child category from a determined parent

I am trying to show in a single post child category from a selected category. For some single post, I have a category that is corresponding to an area. I want to show that category in a special area ...
0
votes
2answers
31 views

Author post count in category

I want to count authors post count in a specific category. How do i do that? I have red this thread here but still can't fiure it out. Count number of posts by author in a category Edit: This is what ...
1
vote
1answer
26 views

Exclude category from

I am trying to exclude a category from <?php the_category(', ') ?> inside my loop. I came across the following code on CSS tricks that says would solve the problem. You add this to the functions:...
0
votes
0answers
26 views

Inconsistent distance between blog post grid on mobile

So i made a blog using a grid with posts, and i tested it on different screen sizes, and on mobile the grid is 1 column width. There is a problem: the width between each post in the grid is ...
0
votes
0answers
29 views

Limit Blog Post Title to 2 Rows/Lines

i recently started creating my wordpress blog, and i would like to limit the title of a post to 2 rows to keep everything organized. I already found a function that lets a limit in amount of ...
1
vote
1answer
25 views

How to limit posts by category

I was wondering if there is a way to make this code limit by category. In other words, if user A has already published 10 posts in category A then he can keep the new ones as drafts in category A or ...
1
vote
0answers
16 views

Display posts from a different website on Genesis Responsive Slider

In the homepage of this website, I have the widget "Genesis - Responsive Slider". From the "Genesis - Responsive Slider" Settings, one can see that it is picking up the posts from ...
0
votes
3answers
36 views

Notification when visitor is on specific WordPress Article

I am desperately attempting to find a way to get an alert when a specific article on my WordPress is visited (and no, I will not be flooded by emails, the code will be used temporarely) Being new to ...
2
votes
0answers
22 views

Wordpress blog posts api - get posts by author

Is there a standard route for getting all blog posts by specific author id? I can't find anything obvious. I tried this but I get a 404 error http://localhost:8888/mysite/wp-json/wp/v2/posts?author=...
0
votes
1answer
13 views

Auto delete pages/posts without views

Hello please does anyone know a way to automatically delete posts that doesn't get views within a period of time. Lets say if a post on my site is made and within 30 days, there are no views on the ...
0
votes
1answer
18 views

Post category behave like a Post in back office menu

I'm wondering if there is a trick to make a custom post category behave like a custom post so I can have multiples menu entries for each categories ? Here we have two menu entries for two post types, ...
0
votes
0answers
36 views

How to work with posts and sub posts?

I am working on a site for a film-festival-archive. I need some kind of a post and sub-post structure. Like: 2018 Main festival post -- directors -- locations -- press material Each sub post has its ...
0
votes
1answer
13 views

Wordpress post page not working properly

When I try to create a post, I get the below screen where I can edit. However, the screen I should get is the one in the second image. Please guide me how to solve the issue
0
votes
0answers
18 views

Please how do I make my wordpress post images show, It's showing data:image

Please how do I make my wordpress post images show, it's showing data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7 making my images not to show up on my post content, but ...
0
votes
0answers
12 views

Is there is any way to add validation for sub categories in backend while publishing posts

My requirement is while submitting posts, If I selected a parent category that has a child category, I need to add validation, I need to select only child category if it has a parent category. For ...
0
votes
0answers
10 views

Post Images URL in Bootstrap Carousel

So i made a blog with some posts, that contain a few images that i want to show in a carousel using Bootstrap. Right now, my code gets all the images and their URL's and i want to use those URL's in ...
0
votes
1answer
27 views

Get URL from all images in a post

so i made a blog and a few posts, but i would like to get all the URLs from the images in a post, and then later put them in a carousel. But right now it doesnt find any images and says No images ...
0
votes
0answers
16 views

wordpress admin missing Posts button

[ I have multiple wordpress account with identical plugins. On 2 of them, I note that 'Posts' word is missing. It is appearing on my other wordpress account. It should appear below 'Avada'. I am using ...
0
votes
0answers
12 views

How to show posts in grid style on search result page?

I want to show posts in a grid-style layout on the search result page when someone searches for something using the search bar. Right now it is showing a list-style layout. I also want to hide the &...
0
votes
0answers
15 views

My website is showing today's date instead of published date since db migration to a new wordpress

I exported my database and content to a new Wordpress. Everything works fine, except that every post is showing under today's date, instead of the published date like it should be (the actual ...
2
votes
3answers
154 views

Go to / Scroll to Password Field on WordPress Posts After Submit With Message(s)

I have, based on post category, added a password form (shortcode) whereof the purpose is to hide certain HTML code. To do this, I have wrapped certain HTML-tags in a shortcode using the the_content ...
0
votes
1answer
24 views

How can I change the date format of the revision list?

The date format looks like this "$ datef = _x ('F j, Y @ H: i: s', 'revision date format');" but I want it to be like this "$ datef = _x ('Y-m-d @ H: i: s', 'revision date format');&...
0
votes
0answers
16 views

Save data is post using php front end

I'm newbie, i have a simple php file ,there is my data like, title, body content, feature image, category and 1 custom file I want to save this data in my post My coding look like this $title="...
0
votes
0answers
17 views

Single Post function to display all single post images in a carousel

So i want to show the images i put in a post to automatically show up in a carousel if there is more than 1 image found. I put the bootstrap Carousel in the Single-Post.php but the get_attached_media ...
0
votes
0answers
10 views

How to prevent post publish, if some validations for custom fields are not passed?

I know it is answered here, but none of them worked for me. My code: class MyClass { public function __construct() { add_action( 'pre_post_update', [$this, 'pre_save_metaboxes'], 10, ...
0
votes
0answers
15 views

Single Post Page Carousel/Slider Function?

I am building my Blog and i would like to use a carousel on top of the Post page if i add more than 1 image to my post. Can this be done in the theme functions.php or is there a plugin for this? I did ...
0
votes
0answers
29 views

display post ID and user ID instead of name [closed]

I'm really new to WordPress or development in general. I saw a website that displaying posts and articles by ID and use ID instead of name to keep it private (confession stuff), also it takes a ...
1
vote
1answer
66 views

How to create custom boxes with text inside?

I want to put my math notes on a Wordpress blog. I always write my notes using Pages and they always have the following format: Is it possible to replicate the above format in a Wordpress post? ...

1
2 3 4 5
114