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

learn more… | top users | synonyms (2)

0
votes
0answers
26 views

Use two categories and remove for first data

So I find id for two post categories, and now I'm trying to write php code in content-single.php in acesspress lite. This is that I obtained: <article id="post-<?php the_category_ID(7); ?>" ...
0
votes
0answers
37 views

Embedding Facebook in blog post not working

there once was this feature of embedding Facebook status posts simply by entering the URL see here or here (edited: apparently I misunderstood the content of that blog post). So now I am trying to ...
0
votes
0answers
24 views

Trying to create 2 columns of post excerpts - nearly there…

I'm trying to get my blog excerpts to display in 2 columns with a third column for the side bar, I've spent all day following various tuts and although I'm close (I think!) I can't get it right. ...
0
votes
0answers
12 views

How to add all the number given in field of metabox of wordpress?

I have added a field called number of question in post meta box. THe feild name is no_of_question. To get the number of question i can do echo get_post_meta($post->ID, $field['no_of_question'], ...
0
votes
0answers
12 views

Trouble figuring out slider for post containers

There is a section on the site I'm working on that loads 4 containers that are links to posts. I need to add functionality that allows you to scroll through more containers in the section by clicking ...
0
votes
0answers
16 views

When moving a wordpress installation to a new server, why do I have to update each post before content shows?

The site url (www.example.com) hasn't changed. So I exported the wp_posts table from my old shared hosting server database and imported it into a new wordpress installation on my new dedicated ...
0
votes
0answers
24 views

How to update post_parent on images uploaded via Add Media button from front-end

I'm working on a plugin that will allow registered users to post content from front-end. I added WordPress default Add Media button on TinyMCE and noticed all the images uploaded via Add Media get ...
0
votes
0answers
24 views

Getting posts for a category

I have a menu made up of categories, click a category shows the users list of articles beloging to said category. However I seem to have stumbled across a problem if a post belongs to 2 or more ...
0
votes
0answers
13 views

Access passworded post with URL

I'm using Woocommerce to sell memberships which users must apply for and I've passworded them all to prevent unauthorized purchases. The best solution for me would be to have a link which 'unlocks' ...
0
votes
0answers
37 views

Wordpress loop uses unmodified posts array, why?

I have this code in a Wordpress template: $prepost = $post; $normal_args = array( // here goes the args ); $normal_query = new WP_Query( $normal_args ); echo 'BEFORE: ' . ...
0
votes
0answers
24 views

How to add page template to my own post type

I want to add native box from Wordpress where users can set a post template in Wordpress Form plugin. In wpgform-post-type.php I have declaration of register_post_type. function ...
0
votes
0answers
108 views

Ajax - Post Categories and Load More

I have a page_template on my front page where I want to show "all post category" by default with a maximum of 5 post, but there will be buttons for each of my category, so when they click on a ...
0
votes
0answers
27 views

wp query custom orderby not custom field

I am working on a products archive page where I show 20 products on each page with pagination. Each product's price is calculated by a formule which gets his parameters by data saved in the database. ...
0
votes
0answers
8 views

Linking posts and categories using an automata

I migrated a blog from Blogger to WP and now have some 900 posts to which I have to assign categories. Doing it manually isn't practical, so I designed a parser looking for keywords in the posts. All ...
0
votes
0answers
20 views

Add Postbox for Featured Image Caption in wp-admin/post-new.php

I'm newbie here. I want to add postbox / meta box in my wp-admin/post-new.php page. Someone please help me. Last days i have try to search it in any tutorial, but i cannt solve it. I try to modify ...
0
votes
0answers
55 views

Wordpress REST API not returning all posts

I am trying to get the json data of my posts. I have tried with both v1.2.4 and v2 of the REST API plugin. If I enter http://example.com/wp-json/posts?type=magazine or ...
0
votes
0answers
23 views

Error after saving or updating post

I am getting the following error every time I update or save a post: Warning: stripslashes() expects parameter 1 to be string, array given in ...
0
votes
0answers
17 views

Displaying Taxonomy titles with their post

Suppose i have a taxonomy note_navigation like this Class 11 --Science --> THis is children of Class 11 ----Physics --> Children of Science and grandchildren of Class 11 ------ QUantum Physics ...
0
votes
0answers
16 views

Metabox values are empty on POST

I've created a metabox for my custom posttype for a shopping plugin. But right now I have some troubles saving the data. This is my metabox view: function wpt_products_price() { global $post; ...
0
votes
0answers
21 views

get backup file from wordpress database in x days

I have a wordpress website with so many posts and custom fields located in meta table. What I have to do is to make backup from each 30 days (for posts and postsmeta table) and append it to my last ...
0
votes
0answers
12 views

Wordpress field group post

I am trying to pull images from a field group I created in Wordpress. First I created a new field group. I then created a new row with the name: witb-icons and field type: loop. Then I created a new ...
0
votes
0answers
18 views

How to let users “follow/subscribe” tags (part is working)

I've searched for this for a looong time; My users should be able to follow/subscribe a tag than on a second front page, they only get posts from the subscribed tags. In the following example, in the ...
0
votes
0answers
17 views

Move only new blog posts to sub directory?

Currently my blog posts are not under a sub directory : www.example.com/blogpost1 www.example.com/blogpost2 etc.. Going forward I want all blog posts to be: www.example.com/blog/blogpost3 ...
0
votes
0answers
15 views

How to reorganize the items in post editor page (wp-admin/post-new.php)?

How do I reorganize the menus or items in the post editing page (wp-admin/post-new.php). For example, I want the publishing box to be move to the bottom and have the category box to be on the top. ...
0
votes
0answers
18 views

Custom Query Problem

I want to get posts specified with just parent category, not with childs of it. But when I'm using category property, posts_per_page not working. If I remove category proerty, posts_per_page working. ...
0
votes
0answers
31 views

Only display the subcategory posts in the category page

I have worked with WordPress for a few years and never encountered such case where I need to display posts published under the sub categories of the parent category without parent's post or grand ...
0
votes
0answers
40 views

Display custom posts under category and sub-category

I want to display all posts under child, Sub Child 1 and 2. Let's say we have 3 posts, 2 of them are under Sub Child 1 and last one is under Sub Child 2. I only want the 2 posts that are under Sub ...
0
votes
0answers
17 views

Disable archiving of old posts?

I need to disable archiving. We want to have all posts, no matter how old, remain in the roll with the newer posts even if you have to page back to get to them. I've been searching, and most of what ...
0
votes
0answers
14 views

Making sure to always display posts from three different authors

Say I want to display nine posts on my homepage, and have 3 authors on the blog. Using WP_Query or a similar method, Is it possible to make sure that at least 1 or 2 posts from each author is ...
0
votes
0answers
20 views

How to : pagination in 3 different custom loops on the same page

I have this content in my index.php. 3 areas with 3 distinct custop wp_query loops to get different categories of articles in each one. I have set wordpress to show 12 articles by page, so it displays ...
0
votes
0answers
8 views

Different number of posts on different browsers and different language

I have ordinary WP_Query with featured posts and plugin Polylang, the problem is that different number of posts that is defined is showed in different language and I've noticed in different browsers ...
0
votes
0answers
9 views

Search within a very long post that has been splitted into pages

I'm looking for a plugin or a hack that'll allow you to search within a very long post. I know you can already ctrl+f on any browser and look for the words you're looking for, but what if the post has ...
0
votes
0answers
27 views

Prevent scheduled post being published if date/time is past current date/time

I'm looking for a function at prevents a scheduled post being published/updated (with a popup warning or text next to the publish button) if the post's date/time is equal to or less than the current ...
0
votes
0answers
14 views

How to get all the posts to a image (media)?

I would like to fetch all the posts in which a particular image is used. Lets say image_xya.jpg is attached in following articles- Article 1 Article 2 Article 3 Now I would like to display all ...
0
votes
0answers
38 views

post_permalink not leading to individual posts, but most recent post

I've set up the main blog page, and I put this for the link leading to the full post: echo post_permalink( $ID ); This shows up correctly as a link, but the title and content are my most recent ...
0
votes
0answers
29 views

show posts in two columns with different template parts

i tried to show the posts of a category in two columns on a page. Normally i do that only with CSS respectively bootstrap columns. But in this case, i need for each column a own template part. In the ...
0
votes
0answers
15 views

How do I display continuous loop of multiple (4) previous adjacent posts while viewing the current post

I found a great article that enables me to display previous 4 adjacent posts here: Getting the Next and Previous Posts Titles in the Sidebar? @sorich87's explanation works great for me on my website. ...
0
votes
0answers
18 views

Custom taxonomy save only last checked category

I create custom post_types and custom taxonomy. I want save post in more one category (taxonomy). Taxonomy -> hierarchical. When I cheked more one category (taxonomy) post save only first or last ...
0
votes
0answers
28 views

Can't set post permalinks without breaking single page for ACF

I am using Advanced Custom Fields to make sections where a user can post products to a shop page and then have set his owl external URL. This works fine but I've just noticed some problems and I can't ...
0
votes
0answers
24 views

Checklist of all posts from a custom post type in a metabox

Suppose i have a custom post type named "product". i want a metabox where all the post title of product custom post type that is already published is shown with a checkbox. how can i make this and ...
0
votes
0answers
99 views

How to display most popular posts from certain category in sidebar?

Assume I have a menu based on categories (jazz, rock, classic). I would like to display most popular posts (in sidebar widget) depending on which page I am (on jazz page I would like to have most ...
0
votes
0answers
18 views

Syncronize post from different databases

I have an "engine" site that import rss post from all over the world, all day, like an aggregator. That importing activity is really slowin down things. So in a different neat and clean wordpress ...
0
votes
0answers
42 views

Getting wrong ID

I have a page template with a custom query. The query displays posts from a post type. I want to display the ID's of the queried posts, but when I use this... <?php $id = the_ID(); ?> All I ...
0
votes
0answers
37 views

How to wrap all elements in a div inside a post

How to wrap all elements in a div inside a post? eg <p>...</p> <h1>...</h1> <img> turns to <div class="para"><p>...</p></div> <div ...
0
votes
0answers
87 views

When I set home to static and post pages to blog all customization and sidebar no longer display

New to wordpress and using tesseract 2015 theme. Blog page has a permalink /blog-2 (not sure why) and all posts seem to create their own page /title of post. When I set post pages to blog nothing ...
0
votes
0answers
17 views

How to create redirect to default permalinks wordpress

How to create a redirect wordpress site.com/file/%post-name%/ to default permalinks site.com/?p=22 ?
0
votes
0answers
19 views

Add zip downloadable file for wordpress galleries

I have already read this article ZIP up all images displayed in a [gallery] and offer as download link and I have to tell you this plugin works fine for me, but I have a problem. I'm using ajax to ...
0
votes
0answers
66 views

Posts not showing when category is clicked

I have a site: microman.be. The blog was imported by Blogger Import tool. All posts are visible, on the blog page too. When I click on a category in the blog sidebar an empty page turns up. The URL ...
0
votes
0answers
36 views

Index.php Not Showing Custom Posts / Terms

I have my index.php page set up and is displaying my posts page as well as category archive pages without any issues. The problem however, is trying to display posts for custom taxonomy archives. The ...
0
votes
0answers
18 views

Hook To Get All Posts Deleted

I've added an which makes a call to an external service every time a post is deleted. However, it's on the delete_post hook, which works fine when I delete a single post, but if multiple posts are ...