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

How to change the structure of an image attachment in a post?

I'm trying to solve a problem with the attached images in a post. Somehow the structure is not working right on a theme i'm using. Instead of showing a div with the class "wp_attachment" is just a h6 ...
0
votes
0answers
27 views

Custom WordPress Bootstrap Carousel issue

Hi I have been working on a carousel to display four posts inside a "slide", here is the code: <div id="blogslide" class="carousel slide carousel-sync" data-ride="carousel" > <div ...
0
votes
1answer
24 views

Wordpress - Update all existing posts at once

Is there a way to cycle through all existing, published posts on a WP site, that will replicate pushing the "update" button on every post one by one? This would be a one time event. I have a site with ...
1
vote
1answer
12 views

Make Post Editor Select Number of Columns To 1 By Default

I want to make the Number of Columns in screen options for a custom post type is selected to 1 by default, instead of 2, which means full screen. How this can be done?
0
votes
1answer
45 views

creating files for displaying different custom post type posts with paging

I have the following post types: Post - wordpress built in Documents - custom post type Videos - custom post type I am very new to wordpress and I do not understand the template structure. I am ...
0
votes
0answers
9 views

no posts or pages showing on mirror domain

alright this is a tricky one bear with me a while back i developed a site for someone and he just pointed his DNS nameservers to my host which is dreamhost. later he decided to change the DNS back, ...
2
votes
1answer
14 views

How to display post tags through the functions file

I'm converting an HTML template into a wordpress theme and I'm having some trouble displaying the post tags within the functions.php file. What I would like to do is add the following code into the ...
0
votes
1answer
24 views

Get post related to particular meta box? [closed]

I have created few metaboxes and i would like to show the post related to that particular metabox value. Just like we get the post related to tags or categories.
0
votes
1answer
41 views

Insert data from custom created php page to wp_postmeta table

Hi i am working wordpress site here i have created one custom page in bellow directory /home/planmyme/public_html/php/ with the name response.php. on this page i am getting some value that value i ...
0
votes
0answers
20 views

Can I save part of the post in an external file and join it on the fly to avoid redundancy in the wp_posts table?

To start with, I apologise if this is a double, which I believe is the case, but searching for similar posts is not easy. In my blog, I will have a lot of posts(more than 1000 at one stage) where the ...
0
votes
0answers
15 views

How to set post status to draft when theme membership expires

First post here and I'm not really a coder but have some understanding - I need to do the following in a directory theme that has a custom membership package as part of the theme. Its Atlas theme. The ...
0
votes
1answer
40 views

Display posts of specific category term

I'm using this code to first display each category term as headlines and then display a post which is assigned each category term under the headline. If I create a custom taxonomy it works as ...
3
votes
9answers
262 views

disable WP automatically inserted line breaks after an image

I've set medium sized images to a custom size which should allow for both of the images to align horizontally within the post. (The full post width is 880px, medium images are set to 413px.) My ...
0
votes
1answer
23 views

Is there a way to order posts and custom post types as one group?

I have tried several plugins which seem to purport to do this (like this one), but they either don't or are very poor in their implementation and cause problems (the one linked seems to randomly ...
0
votes
0answers
27 views

WordPress is creating a lot of draft posts

My WordPress install (with the following plugins) randomly creates Draft posts whenever I load the posts page. Is there a way to find out which plugin is doing this (aside from deactivating)? Has ...
0
votes
1answer
21 views

How to add an admin notice upon post save/update

I have a post type the uses post_save to take the address from the post-meta and retrieve the lat/lng coordinates from the Google API. I need a way of notifying the user if there was an issue with ...
0
votes
0answers
8 views

Post relationship with custom excerpts for each related post

I'm building a recommendations site, where people can recommend other posts and give their opinion (a short text) on that post. So in the admin, I want to include, on the "Post Edit" screen, an ...
0
votes
1answer
24 views

Create a list of posts with topic headdings

I would like to use a custom field "topic" to order Wordpress posts. This seems quite doable using 'orderby' => 'meta_value', 'meta_key' => 'topic' But I would also like to have a title of ...
0
votes
1answer
13 views

Grab next post title in archive page

I am using a custom query on a page to display single posts from a specific category, one post per page. Here is my current query: $results = new WP_Query( array( 'post_type' => 'post', ...
0
votes
1answer
28 views

Display a post count from a custom metabox selection

I was wondering if this is possible. I have a custom post type call projects that displays a metabox with drop down menu. In that drop down menu I have a few choices listed, draft, open, pending, ...
0
votes
1answer
28 views

Post type no single page

I have created a post type and I am trying to create a single page for that post type, I am creating a php file called single-job.php and it is using the index.php as a template. Below is my function ...
0
votes
0answers
50 views

How to show related posts by category or custom post type?

I'm looking for the best way to go about creating, probably, custom post type where you can filter in the categories related to that custom post type in the sidebar. Here is the website I'm working ...
0
votes
4answers
61 views

Permalink remain the same on each page

I have displayed the post title within the anchor tag after which I've set the permalink. The permalink, however, is not working with the same title that came from the post. It's like getting the ...
1
vote
2answers
45 views

How to create shortcode to show the 2 latest posts

I would like to create a shortcode that displays the last 3 posts to any page.... It should be laid out like this Title Excerpt...Read more I've added this code in function.php function ...
0
votes
2answers
27 views

Variable not working in WP_Query

I have used this technique before and cannot work out why this time it is not working. 'news_category' is a custom taxonomy of my custom post type 'News'. I am getting the taxonomy of the current ...
0
votes
1answer
51 views

How To Add Perfect Apostrophe And Quotation Mark In WordPress Posts?

I have a blog at www.exeideas.com where I am sharing codes snippet too. I am new to WordPress and migrated from Blogger. So now my all codes shared in posts stop working. When I check my codes then ...
0
votes
1answer
42 views

Custom Wordpress Theme: Publish Date and Display Date for posts right beside each other

What's currently happening is that for posts that have an 'update' time, the original publish and editor dates are rendering side by side (with no extra information in between, or even a space for ...
0
votes
0answers
21 views

Include Entire Custom Page Template On Another Page

I am trying to create a "one page slider" where I am creating a custom page template to display multiple pages that I specify. (yes I know there are themes for this- I want to customize it myself) I ...
0
votes
1answer
34 views

How to create automatic posts in wordpress?

I have a very intensive data backed WordPress application. Currently I create WordPress posts by using a baseshortcode plugin which pulls data from database and displays in tabular format. I would ...
0
votes
1answer
16 views

Removing filter dropdown in posts table (in this case Yoast SEO)

I don’t need Yoast SEO meta box for one post type so I removed it with remove_meta_box(). Removed unneeded columns in post table by unsetting columns with manage_edit-custom_post_columns, but drop ...
0
votes
1answer
31 views

Exclude a category of posts in author template

I'm using the following author archive code: <?php /** * The template for displaying Author Archive pages. * * @package Cryout Creations * @subpackage Parabola * @since Parabola 1.0 */ ...
0
votes
0answers
22 views

Front-end form submission not creating post

I'm trying to use a front end form to create a post. I've been trying for a while now but I the post is not created. I'm using the code below, i'm not sure if i've forgot something. <?php ...
0
votes
0answers
24 views

Writing directly to WP_Posts table

We directly add posts to WP_Posts table using filemaker. Once the post has been published, however, wordpress seems to be disregarding the existence of certain fields. For example, we have data in ...
0
votes
1answer
24 views

Get author posts count after excluding a category

I want to display the posts count of each author, but posts that are in some categories should be excluded from the count. I tried doing this with count_user_posts( $user->ID ), but this function ...
0
votes
2answers
73 views

Embed PDF into wordpress

is there's a way to show a PDF file inside Post in wordpress ? i used tag but if someone have Internet Download Manager , Dialog will appear to Download the PDF file if visitor click cancel they ...
0
votes
1answer
30 views

Hook Scripts and Styles in WordPress

As explained in this page, I have created a WordPress custom dashboard. Everthing works fine right now. But now I can't hook scripts and styles. Here is my code for hooking scripts and styles. ...
0
votes
1answer
28 views

Wordpress does not output “post” class when calling post_class() function

I am writing an ajax call to a server which requests a next set of posts. However when I try to generate a list of posts I am having an issue with post_class() function. It does not add a "post" class ...
0
votes
1answer
14 views

How do I control the fallback query after the original query returned cero posts?

I just figured out why WP developers expect you to create a separate 404.php page to control the output of that page. (and the silence about any attempt to do it otherwise) It's basically because ...
1
vote
4answers
32 views

Find out who deleted a page or post?

Someone moved a very important page on my website into the trash, and I do not know who did it! It was not deleted permanently so I don't need to worry, in that sense. The revisions, when I restored ...
0
votes
0answers
24 views

Checking if some condition is matched before inserting post into database

Is there a way to check if some requirements are matched before adding new instance of custom post type to database? Like custom policies for adding new posts etc? What I want to do is to build two ...
0
votes
1answer
26 views

At my posts archive page, outside the loop, get_the_id() returns the top most post's ID

I'm trying to get the ID of my posts archive page. It's set via the admin as the posts page so it already has the default Query. The template I'm using is index.php, Tried using page-blog.php but ...
0
votes
0answers
24 views

Can't seem to replicate permalink structure for localhost development site

I'm helping a friend migrate her WordPress powered shop. I'm to the part where I manually re enter all of her products on WooCommerce. On her current live site the link looks like: ...
0
votes
0answers
28 views

query_post causes the posts to be loaded twice on load more posts

I am using query_post to randomize the posts in a custom post type. However this causes the posts to be loaded reloaded when i load more posts in. Below is my code: <?php ...
0
votes
0answers
11 views

Static Page > Post Page displays data from latest blog post instead of the page details [duplicate]

Background I have created a Page called Blog. I have selected "A Static Page" > Post Page > Blog In the "home.php" I am displaying all post with while(have_post()) This is working fine. It is ...
1
vote
1answer
28 views

Need to remove duplication content on home page in wordpress theme

I am trying to develop a simple site on wordpress. I have been trying to remove the duplicating content from home page for hours now, but I am unable to find how to remove that entire row that I ...
1
vote
0answers
8 views

'Create New Child Post' from Parent Post using a button - not using Attribute drop-down

I have a custom post type "my_custom_post_type" which contains posts using a grandparent > parent > child hierarchy. I am currently using the 'Attribute' drop down to assign a new post to a parent ...
0
votes
1answer
16 views

How can add custom commands in post-new.php in wordpress

I am new here. I have a php code that create an html file and upload it inside a folder. How can i add my custom php code inside post-new.php so when the post is published to do this... Also i need ...
0
votes
2answers
39 views

Static posts page with home.php

For my website, I am using a static home page page Home (template front-page.php) and for posts- page News (template home.php) I need to show all the post titles and exceprts on that page News ...
0
votes
0answers
11 views

How to make my search result searched by post title and content and also categories only?

I would like to ask a question. Is there any solution to make my wp search result searched only by post title and categories? If this is a duplicate question, please refer me to the page where i can ...
0
votes
1answer
31 views

How to edit the '<— older' link on archive page in Blankslate theme? [closed]

I am using the 'Blankslate' theme for Wordpress and I edited about everything except for the older and newer links on my blog page. How can I change this links in the Blankslate theme? It isn't ...