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
1answer
14 views

Right way to store a large set of similar information on website? [duplicate]

I want to add a list of companies' information to my website and I want to display the list in a page. Then by clicking on each company, user can see more information about that company in its ...
0
votes
0answers
20 views

How to remove the icons corresponding to “by” (author) and “date” from posts?

I figured out how to remove the author and date data from posts, but the corresponding icons still appear. What file or function should I edit to remove those? Update: I've figured out how to hide ...
0
votes
0answers
9 views

How to display category names on the Blog Page(Post Page)

Hi everyone I hope your doing well, I'm having trouble on how to display the category names on the Post Page or my Blog Page, could anyone give me an idea on how to display the category names. Here's ...
0
votes
0answers
5 views

how to display count of total posts and for every category and having possibility to filter between dates and user

Hello i use simple plugin that count numbers of posts for every category and total but i was stuck in how to display count of posts between to dates and with authors. <div class="wrap posts-...
1
vote
1answer
10 views

What part of template to edit to remove category name from the top of posts?

In the “Twenty Twenty” template I cannot figure out how to remove the display of category name(s) from the top of posts.
0
votes
0answers
8 views

Changing the current Post when loading single.php file

I need the single.php file to be able to load a different Post (Into the POST object) and to consider the new Post as the current post. Example: Current Post ID: 755 Select Random Post ID: 748 Load ...
0
votes
1answer
16 views

Featured Story Shortcode not outputting content

So I'm trying to get a shortcode working where it calls the posts in the featured story category but I'm having issue getting it to output even just the title from the post. There's no error on the ...
1
vote
1answer
19 views

how do I get a specific post from a post with a subcategory in WP

I'm trying to do a project in WP that has subcategories that belong to certain categories and those subcategories have N posts. In a certain area of ​​the project I have to play some specific posts ...
0
votes
0answers
53 views

How to create preview link of draft post with slug

In Wordpress, the Draft post preview will have the below link: mysite.com/?p=2000&preview=true But I want to custom this link to slug/permalink like: mysite.com/my-category/my-post-slug?preview=...
0
votes
0answers
12 views

How to remove the summary table appearing in my wordpress post

When I create post, there is summary table appearing at the bottom with the page modified info, how to remove it from post. Please help.
1
vote
0answers
10 views

Is it possible to change post id for an already added menu item in Wordpress?

In Wordpress is it possible to change a post id of menu item (page) that was already added into a menu? Maybe via some custom function? Our menu is pretty big and i'm searching for an option to save ...
0
votes
0answers
7 views

Customize (or create) the Add new post button

I am writing a plugin and I want to customize the add new post button (or create a new button) so that it can create a new post with some values prefilled based on the url. Is it possible?
0
votes
0answers
6 views

Updating staging site posts before live push

I wanted to know if anyone had a work around to update a staging to mirror all the posts on a live site, Our website has over 7000 posts (news blog) with lots of media files. I have already attempted ...
0
votes
1answer
23 views

how can i display my posts alphabetically?

I want to order my posts alphabetically but I don't know how I can do it with my code. This is my code. <div class="row"> <div class="large-6 medium-12 small-12 ...
0
votes
0answers
5 views

I dont know why redirect from category to home page. please help me

below url is my website post breadcrumb. https://www.must1st.com/category/seo-insight/ but when I click the breadcrumb, redirect to home page url. how can I broken this redirection?
0
votes
0answers
19 views

How can I display the last updated post with the author, the created date, and the modified date on one line?

If I understand well there is already include in wp /general-template.php, and this should include the function to display the updated date (I still want the original date). I found this: if ( !...
0
votes
0answers
18 views

Updating (incrementing by X) all IDs in my WordPress

I'm making a complete redesign of a WordPress site in a new fresh WP installation. This site is an eCommerce one with WooCommerce, so I need to export ALL the WooCommerce data from my old site to be ...
0
votes
1answer
17 views

How to pull latest posts from a specific category

I'm trying to pull the latest posts from the category "local-news" but I'm only seeing one of the two posts that exist for this category. I'm not sure if it's my if statement and/or while ...
0
votes
0answers
13 views

“Post List” Loop containing other “Child Post List” loops causes pagination error ELEMENTOR

I am using a loop template to display posts in a custom template. The loop template contains another loop to display a list child posts. Child post list requires paginaion, but I am encountering a bug ...
0
votes
0answers
12 views

Set featured image not working

I was ready to set my featured image but when I select the image I want to use nothing seems to happen. I believe this happened after an update. How can I fix it? Should I wait for a new update?
0
votes
0answers
10 views

How to upload multiple images to multiple posts?

I imported an old XML file to a WordPress page. It has 2000+ posts but it doesn't have pictures, and I have to add pictures to all the posts. Of course, uploading and adding 2000+ pictures takes too ...
0
votes
1answer
41 views

How to display posts with plugin (advanced custom fields) field groups?

I have a php/wordpress code (present inside abc.php file) as shown below which displays images of particular size. php/wordpress: <ul id="list-thumbs" class="list-grid"> ...
0
votes
0answers
9 views

Limit users ability to display and publish posts

I'm using vuejs to provide the front-end for some websites that will share the same wordpress installation. I'm using the users account to give the users the ability to create and publish their ...
1
vote
1answer
24 views

List blocks created by a specific block plugin

One way is to list all the posts and search using [has_block][1] but it seems inefficient. Is there a faster way to do this?
0
votes
0answers
35 views

Define multiple prefixes for custom post type

I have created CPT called "Pharmacy" which have a lot of pharmacies inside (approx 10.000) Pharmacies offer 2 different services (skin & scalp) and some provide both services but some ...
0
votes
0answers
51 views

Getting image data from phone camera (MediaDevices.getUserMedia) into user post

Sorry for the newbie, and poorly arranged question... I'm trying to develop a super simple user based wordpress site. I want logged in users to take a photo with their phone which is then uploaded as ...
1
vote
1answer
27 views

What structure should post_content have in the database?

Let me start off by saying that I have no WordPress experience at all so I may be asking a really stupid question. What I need to do is transfer a bunch of articles from a old MySQL database to a ...
0
votes
1answer
14 views

Wordpress - display relationship between blog posts and custom posts

I created through ACF a relationship between blog posts and the custom post type, which contains employee profiles. Through the relationship, I am able to display links to the employee's profile, who ...
0
votes
1answer
16 views

Displaying all posts from other sites on the network on one site

I have a multi-site setup as follows Main Site has no posts Site A has 1 post A Site B has 1 post B Site C has 1 post C What I'm interested in is to be able to treat the main site as an aggregation ...
0
votes
1answer
20 views

Wordpress 5: prevent link from displaying page title instead of URL

I noticed in one of the updates since wordpress 5 that when I paste in a link to another site it shows the page title as the hyperlink (usually "Home") instead of the URL. I don't want that,...
0
votes
0answers
24 views

Blank featured image in media library only with variable url, but work nicely with static image url

I create plugin who create my posts from content files. My featured images are a list of urls. In CASE n ° 1, I test with a static url, the image is well imported and present in the media library (as ...
0
votes
0answers
12 views

Price shows up double at Product Page

I'm currently working on a shop for myself. I have a question about a single product list. In the image shown the price shows up double. The first one is the regular one from WooCommerce. I looked up ...
0
votes
0answers
9 views

function that gathers all gallery shortcodes

So basically I have a gallery plugin that creates galleries with a specific shortcode. So every time I create I gallery, I first need to create the gallery, and then create a post for it, and the ...
0
votes
0answers
17 views

Post title links appear to be broken

I am troubleshooting for a friend and have very little Wordpress experience so apologies in advance. I am wondering where to look to track down an issue that has cropped up with post teasers. ...
1
vote
1answer
15 views

Is there a way to apply Wordpress categories at the block level?

My use case is as follows: I have a database of videos and video transcripts. The transcripts have had a coding scheme applied to them, so that sections of the transcripts are categorized into ...
0
votes
1answer
27 views

Block editors annoying warnings

When I am trying to edit or add a post/page using block editor, it shows me some weird warnings then they act like they disappear, but when I inspect the page, I see that they are still there. The ...
0
votes
0answers
29 views

Wordpress Admin Post Search extend to one custom field

I would like to extend the WordPress admin post search (so in back-end) in order to look at keywords in post title but also in one custom field. I find this thread interesseting (except the custom ...
0
votes
0answers
41 views

How can I make a post sub link?

I need to create a sub link for each post that will contain specific info about the post that I don't want displayed on the post page. I am thinking of making a link as follows, but I'm not sure how ...
1
vote
0answers
51 views

WP Bakery Load More Button loads the same posts

I'm trying to feed posts in my blog page with a WP bakery widget. I have 8 posts published, but when I hit load more button it loads first 3 posts instead of those in the end. Attaching screenshots, ...
0
votes
0answers
36 views

'Quick View' post

On the Wordpress /wp-admin/edit.php?post_type=custom-post-type, how would I add 'Quick View' link? Where it would display a specific template-part in a modal pop up, perhaps Thickbox.
0
votes
1answer
29 views

Send a review notification email to admin when a post is 12 months old

I'd like to send an automated review email to the site admin whenever a post has been published for more than 12 months. I've tried using the following code but can't seem to get it to work, or ...
0
votes
1answer
24 views

How to hide protected posts from archive?

Im trying to hide protected posts in WP from loop: function hideProtectedPosts( $where = '' ) { if (!is_single() && !is_admin()) { $where .= " AND post_password = ''"; ...
1
vote
1answer
25 views

Number format for wp_count_posts()

I'm trying to format my post my total post count in the header of my site. I have the number in there but would like it to format with the commas eg 1,500 not 1500. I know this is probably really ...
0
votes
1answer
31 views

How to limit wordpress the_excerpt() dynamically

I'm trying to limit WordPress post excerpt and I've tried some ways to do it but all of them was not the stuff that I need, to say concisely I want to limit post excerpt with a number that I use ...
0
votes
0answers
8 views

In Wordpress, how can I get the error log to see a postID of a page on the load of post.php?

I have tried using get_the_ID(), global $post; error_log(print_r($post->ID,true)), the_ID() and I cannot the post_ID of a page on load in WP. I have added: add_action( 'load-post.php', 'myFunc' ); ...
0
votes
0answers
16 views

I want to change the post status when the user click on preview

I want to change the status of the post from "draft" to "publish" when the user clicks on the preview button, then make a URL call and change the status of the post back to "...
0
votes
1answer
134 views

posts_per_page displays only 2 posts instead of 4 posts

I have a wordpress/php code as shown below in which I am trying to pull latest 4 channels at Line A in the code below. function get_latest_channels( $instance_id = false ) { echo $instance_id; ...
0
votes
0answers
17 views

the wp_post_update isn't working all the time

When the user clicks on the preview I want to change the status of the post to "published" if not published and then reset my cache in my landing. Then after that, I want to revert the post ...
0
votes
1answer
26 views

Create a post automatically if search result has zero results

I'm developing a site where people can search phone number(s), the most complex part is that i want to create a post automatically when someone search for a specific number if that phone number yield ...
0
votes
0answers
51 views

How to add a sorting dropdown to archive pages?

I'm using Twenty Sixteen theme with a custom template for archive pages. What I'm trying to do is to add a sorting dropdown in those pages, like in the attached image. My code skills are very basic, ...

1
3 4
5
6 7
115