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
2answers
43 views

Modify WP_Post before processing

I am looking for a way to modify WP_Post object before it's processed and displayed on the page. Reason - I built my site when WP was still in version 2.0, or even earlier. I didn't attend to it for ...
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
10 views

Set the “All Posts” admin column to be “Published” rather than “All” [duplicate]

When I look at all my posts in the backend (http://www.my-website.net/wp-admin/edit.php) "All" is the default view. How do I set "Published" as the default view?
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
1answer
65 views

Posts - display all posts except a post by an ID

I want to be able to display all posts except a the most recent post which I am doing as follows:- $last = wp_get_recent_posts( '1'); $last_id = $last['0']['ID']; echo $last_id; //1477 $args = ...
0
votes
1answer
24 views

Load widget only on blog posts

I am attempting to ensure a widget is only loaded on blog post pages. I tried using $post_type = get_post_type( $post_id ); inside the widget function of my widget class. However, upon loading pages ...
1
vote
3answers
49 views

Remove Shortcode […] from Blog Preview

When utilizing shortcode (plugin, etc.) near the top of the page, the plugin shortcode displays in the preview. Is there a way to hide text within brackets [text like this] from a preview on a recent ...
0
votes
2answers
97 views

Full width images within post content

The content of the post is contained in a div which is centred in the page and thus any images in the post would be constrained to the width of that div.The image below illustrates what I would like ...
0
votes
1answer
26 views

How does WP decide how to display a page

I am new to WP. I tried reading up as much as I possibly can online, and via browsing through the files. As far as I can tell, no physical pages/links are stored on the disk, so when a page is ...
0
votes
0answers
25 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
100 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 ...
1
vote
1answer
45 views

get_the_content_feed with paginated posts

I have a wordpress site and i have been working on it's feed. I noticed that when a post has been paginated with , it only renders the first page of the post. What i need to do is get all the content ...
-1
votes
1answer
42 views

Query wordpress posts on static page

I'm working with Wordpress theme where i need to show my posts in a static page.There is a only one section in site where we need to add posts frequently (services) and i need to fetch these posts on ...
0
votes
1answer
67 views

Is possible to do this from function.php

In my single.php (my template Luna) I have this code: <?php if ( has_post_thumbnail( $post->ID ) ): ?> <header class="page-entry-header" style="background-image: ...
0
votes
2answers
41 views

Remove All in One Seo from Posts for Contributors

I am using latest version of All In One Seo Package. How can I remove metaboxes from posts for User Role: "Contributors"?
-1
votes
1answer
60 views

Adding Count Post in Page

Question : how to display post count in a page like this picture : Showing 25 of 123 products I mean in general. I use the custom theme and create a page that contains Categories. How to display text ...
0
votes
1answer
40 views

Cannot implement byline into posts container in single.php

I tried inputting PHP byline code in page.php, single.php and page-sidebar.php inside of the loop, under the title. As I thought, the byline appears on pages but not on posts. Also, I noticed my ...
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
90 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
2answers
35 views

Not all posts showing in query

PHP: <?php $posts_query = new WP_Query('post_type="posts&posts_per_page=-1"'); if ($posts_query->have_posts()) : while ($posts_query->have_posts()) : $posts_query->the_post(); ?> ...
0
votes
2answers
26 views

Subdomain to website directory blog transferring

I have a blog that is located on a subdomain blog.example.com and I have a main website located on example.com. They both use the same wordpress template. I'd like to transfer my blog from the ...
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
1answer
40 views

Pagination on Custom Post

I'm trying to figure out how I can display pagination on my wordpress template. Here is my work in progress. So far the page link doesn't show up <div class="eight columns"> <ul> ...
0
votes
1answer
142 views

Front end post delete error confirmation and success message

I am allowing Authors to delete their posts on the front end as they cant access the admin. I have this working, but what bothers me is the standard javascript onclick alert message - is there are way ...
0
votes
2answers
73 views

Add row after three columns

on my newssite i have the first post in a full-width column, after that all older post are in three columns per row. But now i want that wordpress put after every three columns a and to keeps the ...
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
67 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 ...
2
votes
2answers
153 views

Is post ID number always incremental n+

I have one question. Will WordPress always assign new post post ID which is incremental n+? For example if I delete some posts, will WordPress use ID of deleted post for new post added in future?
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 ...
1
vote
2answers
26 views

Do I use custom post type or something else?

I'm looking to add a "News" section to my homepage, and want this to be a link in my admin left panel so I can add articles on the fly by clicking "Add Article" and providing the headline, publication ...
2
votes
1answer
122 views

Create a separate JS application for an individual post?

Automattic is building a React.js based theme called Picard. All the JS code is in picard.js, which you can see a reference to below. Although WordPress doesn't have a "router" per se (as explained ...
0
votes
0answers
36 views

Why isn't my custom post type using the corresponding custom post template?

I've created a custom post type, 'film' am having trouble getting posts of this type to use the custom post template I've created in my theme directory. I created the 'film' post type in ...
0
votes
1answer
54 views

How to rename “Publish” metabox title in post screen

I've looked everywhere trying to find how to rename the "Publish" metabox title in the WordPress backend post screen. There's help for every other metabox for changing titles and there's help for ...
0
votes
1answer
23 views

Difficulty in creating and handling a complex post type

I would like to create a restaurant guide for a client. The restaurants of course are divided in various categories (and many of those may belong to two or more categories). This is the easy part. ...
0
votes
0answers
20 views

Post that looks like a tag cloud

I need a PAGE or a POST - the contents of which look just like a tag cloud. Not an image - but an actual TAG CLOUD (so I can easily add/remove terms that appear in the cloud). The post will not have ...
5
votes
4answers
1k views

Remove slug from custom post type post URLs

It seems that all web resources based on the subject of removing a custom post type slug ie yourdomain.com/CPT-SLUG/post-name are now very outdated solutions often referencing pre WP version 3.5 ...
0
votes
0answers
18 views

Ordering results by last login date

I want to order posts by a post meta field and last login date. Here I use a custom post type called 'Agents'. Agents is a user group and they can login through frontend. For Agent logins, I record ...
0
votes
0answers
31 views

Cannot Get Title or Thumbnail of Posts Page

I set up a page called 'News' and applied this as my posts page. I am really struggling, however, to output the title 'News' or the featured image that has been added to the page itself. Whenever I ...
0
votes
1answer
111 views

Mark menu item as current-menu-item for category

I have some categories on my WP website. When users sees this categories and posts from them i want to mark one of menu items as active. How can i set one of my menu items to have class ...
3
votes
3answers
139 views

Limit widget to a specific registered sidebar

I have a widget I want only allowed to be used with the single.php sidebar. When I referenced the codex for register sidebar there isn't a way to limit widgets in the array. I've researched with ...
0
votes
0answers
15 views

Wordpress posts are repeating

I moved my site from sub domain to this directory now everything is same, but my posts are repeating. some posts are showing twice. What can i do about it. i am using default 2 theme. What to do ...
0
votes
1answer
32 views

How can I set and update the the_date according to a custom field of the post

How can I set and update the the_date according to a custom field of the post? I have a custom field "date-time" with the following format yyyy-mm-dd hh:mm e.g. 2015-09-30 08:12 I'd like this date ...
0
votes
1answer
34 views

Unabled to Change Permalinks - Even Using the “Edit” (Resets to Original Permalink on “Update”)

I have tried everything in every post I have been able to find about changing permalinks for existing posts and pages. I have gone to settings and change the permalink structure in hopes that it would ...
1
vote
0answers
109 views

change default post archive page link

I can't figure how to change the default post archive link. I've got few custom post types (for instance video_news, slug video), if I type www.blogname.com/video I get the archive.php. And every ...
0
votes
0answers
94 views

WP REST API, query total posts in a category

I have just started playing with the WP REST API and found that when querying posts that there is a limit of 10 post per page unless specified. What I would like to know if is is possible to return ...
0
votes
2answers
36 views

Wordpress The Next Posts

So for previous and next posts I used this from wordpress codex <div class="navigation"> <p> <?php posts_nav_link('&#8734;','Go Forward In Time','Go Back in Time'); ...
0
votes
2answers
62 views

How to call wordpress custom post type page

i make a custom post type in WordPress and i also make its separate two pages single-acme_product.php, archive-acme_product.php but the issue is when i upload the post from custom post type its show ...