Stack Exchange Network

Stack Exchange network consists of 174 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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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

1
vote
0answers
8 views

Show posts by a custom post author

I have a listing site and various authors create custom posts (job_listing) On the listing post itself, I would like to show the links to the last 5 NORMAL blog posts by that author Is this anywhere ...
0
votes
1answer
13 views

How to display post categories list

I am wondering what is the best method to display all post categories on the left and display all posts related to per category on the right?
0
votes
1answer
25 views

showing posts of an specific category in admin custom menu with style of admin posts section

I made a plugin and with it added a new menu in admin. I want to show posts of a specific category in it with default template of admin posts section with all of its abilities such edit, delete and ......
0
votes
0answers
8 views

set the featured image of post as slider image

i am trying to set the featured image of a post as slider image in page , the problem the images that i get does not full the slider with , here is the code the i tried <!-- SLIDER CODE ########...
1
vote
1answer
16 views

prevent showing posts of an specific category in admin posts section

For some purposes I made a plugin that automatically makes posts with a specific category. Now in admin posts section, posts with that specific category have been too plentyfull and finding other ...
0
votes
1answer
29 views

WordPress Rest API Create Post

Is it possible to login to my different WP website from another WP website (they have different domain and host) ? Actually, I am trying to create a post on one of my site from my another site using ...
-1
votes
0answers
16 views

How to add next button to my paginated post in wordpress

Please my wordpress post is already paginated, but it's just numerical. I want it to be showing nextpage instead of numbering the pages in the post. See my post here.. https://omgbase.org/27-photo-...
0
votes
0answers
10 views

Private Client Page

I'm not a developer, nor know the basics of proagramming and have been looking for a plugin that can give me a page for each individual client that I can put reports on and other things like Google ...
0
votes
1answer
15 views

Increase loop item by every two items and loop inside loop [on hold]

I want to render a custom type posts with the while loop. The loop output would look like this- <div class="f_product_slider slick"> <div class="row slider_item"> <div class="col-...
-2
votes
0answers
12 views

in click of the post comment getting below error [on hold]

HTTP Status 500 - 8bit type Exception report message 8bit description The server encountered an internal error that prevented it from fulfilling this request. exception java.nio.charset....
-3
votes
0answers
25 views

Gutenberg showing blank page on local site [on hold]

I have just set-up a LOCAL SITE out of my live site on the web. I find that everything's working fine. Except editing the posts in Gutenberg. [Classic works fine]... I used git-ftp to pull ftp server ...
0
votes
0answers
14 views

Get post grandparent value [duplicate]

I have the following page structure within WordPress Grandparent Parent Parent Child Child Child Child Parent Parent Parent ...
0
votes
0answers
15 views

Having a password-protected page that displays blog posts from one category only visible there

I have a public site with a public blog. I now have to make a private page that will display blog entries which will be categorized under a "members-only" category which will only display on said ...
0
votes
2answers
40 views

Display post number by category

I try to add auto increment post numbering by category. Like cat="myID" > post 1, post 2, post 3... Display post number not post ID number In find this solution, and use post_meta looks a good way. ...
0
votes
1answer
21 views

How to display last whole post on the homepage

I try to show on my homepage only the last post, in complete version. I tried numerous methods unsuccessfully. I tried in particular to create a specific template: “front-page.php”, in which I put ...
0
votes
0answers
16 views

How do I hide all tabs until clicked? [closed]

Hi - I am using fruitful tabs on wordpress, but I can't figure out how to hide the tabs until they are clicked on. In the example here the "About" tab is always open when the page loads, i'd like it ...
0
votes
1answer
11 views

Is it possible to create duplicate post on other site (either push, on publish, or pull, periodically)?

I have a requirement to add certain posts (marked with a tag or category) from "site a" to another site ("site b"). I think the best way would be for site b to periodically check site a for the ...
0
votes
1answer
9 views

Need to display author's email id in the “Edit post” field in wp dashboard. How do I do this?

I have created a custom post type & have enabled frontend posting for the same. I need the Edit post page to display the original author's email id. I already have "post author" displayed, but ...
0
votes
0answers
15 views

how to call the last posts that has been modify using xmlrpc python [closed]

I want to call all posts that has been modified in the last 24h I have tried this request tmp2 = wp.call(posts.GetPosts({ 'orderby': 'post_modified', 'number': 20 })) print (tmp2) found this ...
-1
votes
0answers
14 views

ajax checkbox filter for showing posts related to categories in wordpress with pagination [closed]

have to create the blogs page with filters using checkbox with pagination. when i click the checkbox it only filter the post on the same.. but i want to display all similar posts in the site without ...
-1
votes
0answers
21 views

Partition the posts table by year? [closed]

Maybe this is more of a serverfault question than wordpress. But does anyone know how to partition the posts table in the database by year? Edit: Problem seems to be something other than the database....
0
votes
1answer
7 views

How to make certain posts not appear on the main page, but instead only a newly created category(in the menu section)

my question pertains to the wordpress.org platform. Recently i created a new category for my posts(called reviews) and added it as a part of the menu. Basically i wanted to send all the book reviews ...
0
votes
2answers
25 views

Moving FB comments at the end of page

I am using plugin "wpdevart facebook comment" for posting comments at the end of every post. They are displaying good But now I want to shift those comments little below of pagination and ads Or at ...
-2
votes
0answers
21 views

404 on pages after PHP and Apache update [closed]

I have 2 Wordpress sites that I’ve upgraded to PHP7. One was from 5.4 to 7 and the other was 5.6 to 7. After migrating the WP files and the DB, I get a 404 on on pages and posts. If I change ...
0
votes
2answers
13 views

How to display the pagination in my post list? [duplicate]

<?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $args = array( 'posts_per_page' => 6, 'offset'=> 0, 'category' => 1, 'paged' => $paged ); $custom_query = ...
-1
votes
0answers
18 views

How to change the layout of your posts [closed]

I have already figured out how to change my layout of posts to a grid layout (with the help of a plugin). But I couldn't find a plugin that has more possibilities. I would like to try a layout that ...
2
votes
1answer
46 views

How to query serialized array by comparing greater than (>=)?

I have serialized post meta values. It looks like this: In array: $kisiArray = array( 'option1' => 7, 'option2' => 'bar', 'option3' => 'apple', 'option4' => 'orange' ); And ...
-1
votes
2answers
22 views

Error 404 blog/page/2/

Hello i have problem. I can't view /blog/page/2/ i klick "_posts_link" and error 404 shows me Blog Page -> home.php <?php $paged = (get_query_var('paged')) ? ...
0
votes
0answers
21 views

Created Blog Page Only Want Certain Posts To Show Up

I made this page http://test.thechefshack.net/test/essays/ my Blog Page. All of my posts,some which are just images I am using in the galleries are showing up. I only want these 3 blog posts below to ...
1
vote
1answer
27 views

How to update serialized post meta?

I have serialized post meta. And i want to update single meta key. It looks like this: In array: $kisiArray = array( 'option1' => 'foo', 'option2' => 'bar', 'option3' => 'apple', ...
-1
votes
2answers
40 views

How to display the date under the post title?

He everyone i'm a newbie to wordpress/php and have 1 other problem. I am trying to get the date under the post title and not to display the category tags above the title. I tried it to change thing is ...
0
votes
1answer
52 views

How to create wordpress class with post meta? [closed]

I am trying to make something like this. <?php class themeSettings { private $key = 'themeSettings'; public function __construct( $key ) { global $post; $post_id = $post-...
0
votes
0answers
12 views

Add Media Dialog In WordPress Post Screen Too Confusing For My Users

How can I edit the contents of the Add Media box (shown above) in the WordPress post screen? All these options are unnecessary for my users, and I need to edit the short-codes as well, but it needs ...
0
votes
2answers
21 views

How do if all posts has this category ID then do this

I need a wordpress function that search all the posts inside my website and if one or multiple posts have the category ID (example 25) echo "yes", else echo "no" I was trying to do: if ( ...
-1
votes
1answer
10 views

Apply text based styling done for a single post in WPBakery to all posts / create a template out of it

I work on a project with several custom post types. One of these post types is called BSP. For one single specific BSP (called test BSP) I created a whole design with WPBakery, as shown on this image: ...
0
votes
1answer
23 views

Reading settings in the home page precisely home.php

/* ---------------------------------------------- */ /* Setting Post Limits on the HomePage */ /* ---------------------------------------------- */ if ( ! function_exists( 'the_post_limit' ) ) { ...
0
votes
0answers
17 views

Wordpress post archive permalink modification, how to add previous page to single.php url

The current url that links to my post loop is home/sub-page/posts, but when you click a single post's permalink, it takes you to home/posts/single.php. How can I make it so that the sub-page is still ...
0
votes
0answers
16 views

Blog post query, post that contains query return page information instead post information,

I am using a simple query to show 6 of my blog posts. The blog post title, author and date are showing BUT, I have one post that have a query of one of my custom post in its content, this post when ...
0
votes
0answers
12 views

Functions than depending on wp_query global not working with AJAX

I have an ajax infinite scroll posts system and I have a problem that the posts that loaded by the system some function not working with it. Example: I want to appear a message if the current page ...
0
votes
0answers
21 views

Favorites and Event List plugin

I'm trying to work with the Event List plugin and Favorites plugin. I have a program page where I want to show all the events. I've put the following shortcode in my program page: [event-list ...
0
votes
0answers
11 views

Duplicate tag on save post and assign multiple tag automatically to post

When i create any tag in post and product then it duplicate tag automatically. Issue : Duplicate tag 50 times. When i create single tag from post and product admin edit section then it assign all ...
-1
votes
1answer
14 views

WP CF7 custom var

I have a trouble with WP CF7 [dynamichidden custom-prod-code "CF7_custom_prod_code"] in my php : add_shortcode('CF7_custom_prod_code', $val->code_prod); html result : <input type="hidden"...
1
vote
0answers
17 views

I have a site where attachments in the wp_posts table have guid values of guid, how did this happen?

I realise comparing this particular website with all the other WP sites I've built that all the others have the image url in the guid column of the wp_posts table, yet this problem site just has "guid"...
1
vote
1answer
25 views

Add multiple tags to multiple posts

I have an array of posts IDs like this: $id_post_array_full=array(239,243,246,248,250,252,255,257) I would like to add tags for each posts with this function of wordpress wp_set_post_tags(). My real ...
1
vote
2answers
50 views

Split WordPress Latest Posts in Multiple Columns and Rows with one single loop [closed]

I have this layout I am trying to implement - https://drive.google.com/file/d/1cP831xAM1F5CT3HEmedCBkINwiCC18Rb/view And I have created a news template, but I need to get the posts to display like my ...
0
votes
0answers
10 views

Cannot Create Post Parent

I create a form using ACF Repeater and I get value from that form. I try to create a new post using wp_insert_post(), and successfully create a post. The only issue is I cannot create post_parent, I ...
0
votes
1answer
31 views

Quickest way to get last or oldest post date - WP Query

I know how to get the last or oldest post data using following code $posts = get_posts(array( 'post_type' => 'post', 'order_by' => 'publish_date', 'order' => 'ASC' )); And then I will ...
1
vote
1answer
11 views

Reset Popular post query?

I am using the following code to display most read articles. I think it takes the lifetime of the articles as it displays very old articles first. How can I reset it - weekly? in my function.php ...
1
vote
0answers
30 views

How to render arbitrary post without displaying it [closed]

I need to emulate rendering of a post and repeat this action with a list of posts, because during rendering I have a do_action('get_my_info', $key, $value), which helps to collect a special piece of ...
2
votes
1answer
33 views

How to get previous 10 days post from a specific date - WP Query

I want to know how to get previous 10 days post from a specific date, as I know that it can be done from current date as below $args = array( 'post_type' => 'post', 'date_query' => ...