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

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
11 views

How do I create columns in Wordpress?

The last articles on the main page are 3 columns. So there are three articles on each line. Briefly as in the picture: https://www.dropbox.com/s/lqf49uiy3az5vb0/Untitled-1.png This is about the theme ...
0
votes
1answer
13 views

I want to change the Wordpress comments file

In the standard structure of Wordpress, a warning page appears when the user makes spam or goes too fast. The link structure of the warning page is "/wp-comments-post.php". Briefly (see images) https:/...
0
votes
0answers
6 views

How to make tags display the tags associated with that specific post instead of the entire tag cloud?

How to make tags display the tags associated with that specific post instead of the entire tag cloud? For example on the link below it's showing every tag on the site I want it to display on those ...
0
votes
0answers
16 views

Adding HTML every number of words in the content

I'm building a news website and i want to add a banner every 200 words inside the content. How can i add a plain html inside every article when calling the content function?
0
votes
0answers
6 views

How to open a post inside of a panel that slides in from the right or left?

How do you open a WP post inside of a panel that slides in from the right or left? Here's what I want to do: Visitor lands on a page with a list of posts. Visitor clicks on a link to a specific post....
0
votes
2answers
20 views

Loop through posts? Want to remove extra newlines in actual post HTML/content on backend

I have a ton of posts that we created, but unfortunately there are a lot of blank spaces. This is an example of what I see on the backend, in the actual post: <h1>This is a post title</h1&...
0
votes
0answers
17 views

Changed my homepage from latest posts to static. works fine on desktop. on mobile it reverts straight to blog posts page

Hello there as per the title.. i just cannot seem to get to the bottom of this. i've cleared cookies etc on my mobile .. i've asked friends to try on their mobiles also.. same problem. much ...
1
vote
0answers
11 views

How do i get post content after the click of the each sub tab of the parent tab?

I'm working on the custom template in this page I have added the JQery Tab in the, now how do I get content of each sub tab after click on it? I have created Custom Post Type in the admin panel ...
1
vote
1answer
27 views

Getting a 404 error when clicking edit page

The problem I've run into is the WordPress for my website yesterday randomly stopped allowing us to edit any of the pages. Every time you click to edit a page it comes up with a 404 error. Things I ...
1
vote
0answers
16 views

How do i convert jquery static tab into wordpress dynamic post using custom post type?

I'm working on the WordPress custom page where I have added jquery ul tabs in the custom template page. 1) Now how do I get the content in the tab panel after the click on the sub-tabs of the parent ...
0
votes
1answer
13 views

I cannot display custom posts in custom taxonomy

I have a problem with display posts in custom taxonomy. I created custom post type m_product and custom taxonomy for this post type m_product_category. I created file in main theme folder named ...
0
votes
1answer
13 views

Permalink misbehaving in Custom Post Types

I have a post type named careers which is, function do_careers() { register_post_type('Careers', array( 'labels' => array( 'name' => 'Careers', 'singular_name' => '...
1
vote
0answers
10 views

How do i post by jquery datepicker?

I'm working on the WordPress website I have my own search filter page, where I added the jquery datepicker, now I want to search post by datepicker? Html Code <script> $(function() { ...
1
vote
0answers
19 views

Check Title Unique Or Not and If not error message and dont save

i am get tired from searching 2 days for what i wanna i have 'area' custom post type have Title and another field i wanna the title of area is unique if the user enter title 'area1' and this title ...
-1
votes
0answers
14 views

How to add a gap between post and related posts widget? [closed]

I'm trying to figure out how to add extra padding or margin to related posts widget, which is right under the post. I've tried < br >< br > (minus the spaces) in between them, I've tried adding ...
1
vote
1answer
33 views

How do i search post by jquery datepicker?

I'm working on the WordPress website I have my own search filter page, where I added the jquery datepicker, now I want to search post by datepicker? Html Code script> $(function() { jQuery( "#...
1
vote
1answer
30 views

Apply a style for 4 blogs and another style for the next 4 blogs in wordpress blog page?

I tried to customize my blog page. The first 4 blogs should be designed in one style while the next 4 blogs has a different style. When I applied the css, all the blogs were shown the same way. I was ...
0
votes
1answer
21 views

How do I customize the post page

I'm currently trying to add an post page on my Wordpress website. I put my new post page as the default post page, on Settings -> Reading. The id of my page is 353. So I created a new php file named ...
0
votes
0answers
20 views

How to use two query result together in one loop

I have posts with two different design in a loop, i doesn't known how to show that. I use a checkbox ( 'meta_key' => 'nabro_post_photo' ) for a posts have different design to will specify.I create to ...
0
votes
0answers
18 views

This is interesting: The “posts page” is blank

In Reading Settings, where it says "Your homepage displays A static page (select below)", I have a page called "home" selected for homepage, and a page called Blog selected for "Posts page". When I go ...
-1
votes
1answer
42 views

Even/Odd every two posts

I need to display a different layout every two posts, is it possible to achieve this by using even/odd? <?php while (have_posts()): the_post() ?> <?php if ($wp_query->current_post % 2 =...
0
votes
1answer
12 views

How to after saving or publishing a post redirect back to the original page

When viewing a list of posts on the admin page wp-admin/edit.php I click on edit. I then finish editing the post, click on save or publish and expect to be returned to the original admin listing page ...
0
votes
1answer
27 views

Post display in separate page [duplicate]

I have post my post in two different pages. One is News and the other is Blog. However, all my posts go to News page insead. My Blog is a hidden page, it will not display in the menu. This is more for ...
0
votes
1answer
24 views

Relative redirects for posts, categories, products and product categories

I imported all content from an old site to a new one. The old site was basically a catalog of products and blog posts. However, it was all built as standard WP posts - not custom post types. The new ...
0
votes
1answer
10 views

How to find the edit link of the WordPress Post from the URL

I have a url /abcde-post and it is redirecting to home page. Is there a way in wordpress to find out the post edit link from the url
0
votes
1answer
26 views

Clicking on a Post takes 10+ seconds for the server to respond, Pages will respond immediately

I recently changed the theme and added https//: to a blog I'm managing. Since then I have found that when I click on a link going to a blog Post, the website takes about 10+ seconds to begin loading ...
1
vote
0answers
23 views

Ajax post filters not working

I've been trying to create AJAX categories filters but I can't get the code working. I've followed these instructions : http://juha.blog/dev/wordpress/ajax-filters-for-wordpress-categories/ Edit : So ...
0
votes
1answer
39 views

How to display max. 2 sticky posts when posts_per_page is 3?

I have problem with sticky posts. This is my loop: <?php $main_loop = array( 'posts_per_page' => 3, 'orderby' => 'date', ); $query = new WP_Query($main_loop); ?> <?php if (...
0
votes
0answers
9 views

show original publish post date instead of last edited date in wordpress

I have just updated the post on my blog changed its category and now its showing the current date instead of publishing date. how to display the publish date instead of the revision/update one. here ...
0
votes
1answer
30 views

Rest Api not working with Iframe in form data

I have created one api with post request. register_rest_route('myapi/v1', '/post_flyer', array( 'methods' => 'POST', 'callback' => 'api_post_flyer', )); I have to submit ...
0
votes
1answer
23 views

Is there a plugin or a way in the wordpress that would let us have different versions of a post or page accessibe to users?

I work on a website which talks about and teaches some educational subjects. It happens alot that I talk and explain about a software like a year ago and a new versions comes out. Currently what I do, ...
0
votes
1answer
9 views

Schedule image post on download

I have lots of schedule posts containing external images and I want to be able to auto download the images & linked to media library when the post status changes to publish. This is the code so ...
0
votes
0answers
12 views

Ajax form - Front End PM plugin

I am using the Front End PM plugin and I am trying to convert the reply messages form and the create a new message form to submit by AJAX but I am having a bit of difficulty trying to figure out how ...
0
votes
0answers
13 views

Customize Wordpress backend page editor

To build a web pages with Advanced Layout Builder, I want to customize the post page in wordpress backend by adding a new column "Advanced Layerslider" on table list of pages: The new column will ...
0
votes
0answers
10 views

edit_others_posts capability not showing Author option

I have two custom roles on my site. Both of which I would like to be able to use to assign authors to a post. With both of my roles, I have 'edit_others_posts' added as a capability through the user ...
0
votes
1answer
26 views

Show posts in a parent directory [duplicate]

I have a Wordpress in a directory like mydomain.com/page/ and I'd like to show the posts on my parent directory, like mydomain.com/my-post-url How can I do this? Thanks in advance! EDIT: I still need ...
0
votes
2answers
29 views

Wordpress post insertion from PHP file

I have a website it's contains a lot of news, i have to list this news in one PHP file , now i want to insert each news in wordPress as a Post.. what is the best practice way to do that (the news are ...
0
votes
2answers
20 views

Why can't publish posts with too much text?

I'm trying to publish a posts in my WordPress, but when cointain too much words save but doesn't save the content of description like example. I need take the information inside a file and save it in ...
0
votes
2answers
19 views

How to reload a post page editor after published?

I have a unique website type that only requires 10-20 seconds to make a new post. I want my WordPress site to reload the editor page automatically after a new post has been published hence I don't ...
0
votes
0answers
11 views

Inserting shortcodes via functions.php

My question has two parts. I have several shortcodes which are for email capture forms which are geographically specific. I'd like for these email capture form, i.e. shortcodes to appear ONLY on ...
0
votes
1answer
21 views

Add postmeta to all blog posts

I have a bunch of blog posts that I need to update with a custom postmeta key/value pair. Therefore I have two questions - where can I find the postmeta entries in a worpdress MySQL database and how ...
0
votes
1answer
37 views

custom post single page

Very new to WP and AP theme development. I am in the process of creating a theme based on a custom post type. this is my function.php /** * Defines theme version. ...
0
votes
0answers
22 views

Post relationships/nesting

Ok, I know that posts can't be nested but for the purpose of this question, I'm using the word. I'm having some trouble wrapping my head around creating a pedigree site, I'll explain where I am and ...
1
vote
2answers
106 views

Display posts from #6 to #20 on archive page

My client shows his 5 most recent posts (excerpts) on the homepage followed by a "read more" link. On archive page he does not want to display the 5 most recent post again but posts from #6 to #20. ...
0
votes
0answers
21 views

How to remove images from posts by their dimensions

There are lots of low-dimension images in our WordPress posts which have been inserted by mistake. We want to remove all <img> tags which has an image with height or weight lower than 200px. ...
-1
votes
0answers
18 views

Unable to save / publish from work PC under a policy

I appear to be unable to save draft posts or publish new posts whilst using a new work laptop. I can view my website, successfully login and also upload individual media files. However, when it comes ...
0
votes
1answer
37 views

Blog Page doesn't show summary but full content

I am new to Wordpress and I have encountered a troubling issue. I have 6 posts already present on my posts section and I want them as summary to the blog page. I did make the changes in the Reading ...
0
votes
0answers
13 views

Allow users to use certain authors in posts

Would it be possible to limit which author name users can use in backend? Lets say there is user (A) and hes only allowed to change post author to (A) or (B) and then there is user (C) and he can use ...
0
votes
0answers
17 views

How to display single post and the 3 previous posts on home and single

I am looking to have my site display a single blog post at a time, with the 3 previous posts displayed by thumbnail/title on the right. I was successful in getting this to work for the current post ...
0
votes
0answers
16 views

Create posts by any logged in users

I want to allow logged-in any users to create posts. For this purpose I created a form <form> <div class="form-group"> <input type="text" class="form-control" id="...