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

Unique post-id for Wordpress Multisite Network

As the title says, is there any way to make sure that posts from subdomains, in a Multisite Network, can use different ids? The reason for this, is because I'm using WP Favorite Posts plugin, and ...
0
votes
1answer
30 views

numberposts not working

I've got this following block of code and want to limit the number posts to 2, but it doesn't seem to work..?? I've also tried using posts_per_page, doesn't seem to work either. Can anyone help point ...
0
votes
1answer
16 views

Display a post via template

I want to display a single post in the sidebar-area (not the sidebar itself) and can't seem to get it working. I know the post_id (it's 1571 btw), so I looked around and only found this link from 7 ...
1
vote
1answer
20 views

How to get the post type from a category id?

I am trying to find out the post type from a category id. Suppose that, when i am opening a category page localhost/project/foobaar/category/pen I want to know the post type to which category - ...
0
votes
0answers
10 views

Gravity forms plugins image upload code [on hold]

I want to change dpi of an uploaded image before uploading that image and before saving into database.
0
votes
3answers
25 views

set role specific screen options in post summary page(all posts)

I need to set different screen options in post summary page(all posts) for administrator and different options for other user roles. But It should not be able to change from the particular user ...
1
vote
2answers
22 views

How to change the color theme per post?

A client of mine wants to be able to choose between a dark and a light theme each time he publishes a post. What's the best way to change the color of a theme per post? I thought in creating a ...
0
votes
1answer
18 views

New Gmail email to a WordPress new post? [on hold]

I have seen several paid, free, trail, etc services (Zapier, IFTTT) where you can give your gmail email login info and WordPress setup info and it will automate certain processes. For example, once ...
0
votes
0answers
19 views

Using post as Project/Work, How to divide in Featured & Work-in-Progress and display on Home page? [on hold]

I am using Hi-Response theme for my Website. Publishing my all Projects/Work using Posts. How do I segregate my Projects in FEATURED & WORK-IN-PROGRESS and display on Home page dynamically? ...
0
votes
1answer
22 views

How to convert query sql to shortcode in wordpress?

I want to make a shortcode like this [myshorcode:2:drinks], and query-wrangler I have managed to get the following query that shows me 2 products of a certain taxonomy PHP WP_Query: $query = array ( ...
0
votes
0answers
13 views

WP Custom Post Type permalinks with category [duplicate]

I am trying to accomplish the following: Website will contain a section titled "resources". I would like to separate the content using content post types. Post Type: Resources ( This i can create via ...
-2
votes
0answers
9 views

Add some text after a specific post

I have a blog where 20 posts are appearing. I am using twenty fifteen theme. I want to add some text after 4th number post and then 8th, 12th and 16th.
0
votes
0answers
5 views

Paginate Multisite Attachment WP_Query

I am working on a multisite blog network where I need to display x post per page and navigation at the of the bottom list. My code will not display a pagination at the bottom and displays x post per ...
0
votes
1answer
13 views

How can I add 2 buttons with shortcode

I want 2 buttons in my blog post. One is "DEMO" and another one is "DEWNLOAD" . For Demo button shortcode I use this codes. function demo_button($atts,$content = null) { extract( shortcode_atts( ...
-1
votes
0answers
11 views

Show all subcategories post on parent cat page using wp_query

I am trying to display the children categories post. $wp_query = new WP_Query(); $wp_query->query('post_type=post&posts_per_page=12&paged='.$paged.'&category__and='.$cat_id); <?php ...
-1
votes
0answers
18 views

Anonymous users and posts addition hack/spamming [on hold]

I have a wordpress website url:- http://saicarbzr2014.staging.wpengine.com/sell-your-car/ . Anonymous Users and posts are being added in every 10 min on its own. Its really frustrating.. Please ...
0
votes
0answers
10 views

Disable Media uploader to users

Is it possible to disable the Media uploader to anyone lower than an admin, but have the select file(s) window show?
0
votes
0answers
4 views

How to duplicate Sub Menu?

Just wondering how I can duplicate (copy) a sub menu item. I have the duplicate menu and duplicate post plugins. Neither lets me duplicate a sub menu. Thank you for the help
0
votes
0answers
20 views

How to add a class to edit_post_link?

My goal is obtain "Edit" button like this: <a class="post-edit-link btn btn-default" href="{$url}">Edit this</a> The first attempt I was trying adopt was adding before and after params: ...
0
votes
0answers
8 views

Use one meta box handler at post editor and option page

I made plugin which uses custom database table to store custom form data. All works at option page where is added meta box like this add_meta_box( 'my_form_meta_box', 'My details', ...
-1
votes
2answers
31 views

Undelete post (untrash)?

Which function should be used to move post from trash to published pages? i.e. is there wp_undelete_post or something like?
0
votes
1answer
32 views

Wordpress get_post_meta issue

I'm new to php and was assigned some code to fix within a Wordpress theme, but I cannot figure it out for anything. The code is for the home page of a custom theme and it is supposed to pull the most ...
0
votes
0answers
9 views

This snippet is making my post display as an attachment post

Ive added this function to my functions.php in order to get a field to set if there isnt a category listed. function my_acf_save_term( $post_id ) { // Bail if not logged in or not able to post if ( ...
0
votes
0answers
13 views

Creating different instances of a post

I was wondering if there is a way to create different instances of a parent post. For example I have post: example.com/post and I'd like to have a sub post like: example.com/post/1 (which is just like ...
0
votes
0answers
18 views

HELP get categories, child and post

Have tried severals code from Codex but not working,is it possible to display posts on category pages as subcategory wise using this. Example : ** Main Category Page ** ** Sub category #1 ** – Post ...
-2
votes
0answers
16 views

Facebook style J-K keyboard key scrolling within post headings in WordPress? [closed]

How can I make make WordPress scrolling that does the similar scrolling function like scrolling through posts on Facebook by pressing 'J' for next and 'K' for previous? I want to let my visitors use ...
0
votes
2answers
26 views

How to show show the Second page title in the page

I am using a page hierarchy and I want to show the title of the 2nd parents The structure is something like Main Page Main Page > Second page Main Page > Second page > Third page Main Page > ...
0
votes
1answer
33 views

Duplicate Custom Post Type and Taxonomy Slug

I've seen a few questions that are very similar, but I haven't been able to get an exact answer, so I'm going to explain my situation here. Quite simply, I need the following url structure: ...
0
votes
2answers
38 views

Skip posts, but keep posts per page

I'm running through a normal loop on one of my templates, and it displays a list of upcoming events with dates. I'd like the events that have passed to stay active, but not appear in my list of posts. ...
0
votes
1answer
15 views

Comments as part of a post

Is there a way to show comments as part of a post, and not adding it with comments_template()?
0
votes
1answer
19 views

Hidden Some Setting on Post or Page [duplicate]

I'm using Advanced Custom Fields, but i want to remove this (in the red mark) from non-admin, what plugins to disable this? Thanks.
0
votes
0answers
21 views

get post content of particular post by url

I want to get the post content of particular post using Curl or any other methods from third party website is it possible? As the structure remains the same <entry-content> i guess there ...
0
votes
1answer
20 views

Related posts display randomly by tag

I would like to ask that what code should i add in order to make my related posts by tag to display randomly? I got this code from somewhere else. <?php $orig_post = $post; global $post; $tags = ...
0
votes
0answers
10 views

Unable to uncheck a category in a post

I've created a post and I've checked the 'Jobs' category, but when I save the post, the 'News' category gets automatically checked, as well as the jobs category. It's seemingly impossible stop this ...
0
votes
0answers
6 views

How to tag posts under menu items without showing posts titles?

right to the point. How do I 'link' posts to menu titles so once someone clicks on the menu title all the posts that I tagged there show up? I do not want that each post's title show up (when ...
0
votes
0answers
18 views

Sticking a post or page to the top of all WordPress pages, posts, index pages, etc

I'm trying to add the same common content (like an announcement, banner, or slider) to the top of all WordPress pages, posts, category archives, etc. Standard WordPress sticky posts are displayed only ...
0
votes
1answer
29 views

Display only one post each WEEK

I have custom post type named 'NEWS' where i already published 52 posts at a time. Now, in front i would like to display them ONE NEWS for ONE WEEK. So 52 NEWS will cover one year for me. My ...
0
votes
0answers
25 views

Custom post type as HTML/PHP table

I have a custom page which displays some WP members (students) using $wpdb to query the database and display these members in a HTML table. This table gets generated (populated with records) when the ...
0
votes
2answers
53 views

Why aren't paragraphs breaking on this page?

This page is created using a recent posts shortcode included with my theme. It is not displaying paragraph breaks that I've added in the editor and I'd like it to. How can I get the shortcode to ...
-1
votes
1answer
11 views

Disable Author Box on Homepage & on Pages

I have added an Authorbox code in my entry.php between codes of post & comments. But the authorbox is being displayed also on pages & homepages . Any solution , to make it visible only on ...
0
votes
0answers
10 views

Click on link to filter displayed posts like what we can see on products page

**I wanna know if there is a way to filter displaying post on clicking on menu or a link. I know that there is some ways for admin post list, but i want it for front pages. I think we can do that ...
0
votes
0answers
14 views

Custom Permalink Post with meta value

I would like to use two metabox values in order to build the permalinks for all posts (standard post type of wordpress). But after rewriting the permalink, it links to a page that contains a part of ...
0
votes
0answers
12 views

Show posts from specific categories in a set page and some cosmetic modifications

So I'm trying to make a gallery-site for a friend's art as a hobby/learning project, and so far I've chosen a theme that I liked and modified it to fit the content I wanted to upload. But ...
0
votes
1answer
25 views

Wordpress loop not working on static front page

I have a static wordpress front page. I want the code that works on my regular blog template to work on the homepage too. Currently, it only shows one post. The code in the main index.php is this... ...
0
votes
0answers
11 views

Filter displaying posts

I wanna know if there is a way to filter displaying post on clicking on menu or a link. I know that there is some ways for admin post list, but i want it for front pages. I think we can do that by ...
0
votes
1answer
25 views

get query() without post content?

Is there a way to get query with post information (thumbnails, id, etc.) but without the_content()? I already have plugin to show recent posts in sidebars at homepage and when it is for example 20 ...
0
votes
1answer
18 views

Getting a list of the published posts

I would like to get a list of the posts published in WP in every category with the published date and the last modified date. I've tried to achieve this result through a Plugin but it's completely ...
0
votes
1answer
20 views

How to relate 3 wordpress components with each other (Create database relationships)

Alright, so I have these 3 website parts: Gallery (that has) Artist Place A gallery can have only one artist and one place An artist can have many galleries A place can have many galleries When I ...
0
votes
2answers
22 views

Exclude post category in a blog page

I have two links in "news" where all the news posts goes "blog" where the rest goes just wanted to exclude the category "news" in the blog page I use the code $news = new WP_query ...
0
votes
0answers
7 views

How to allow a “contributor” to restore a delete post?

I have a user with "contributor" role attached. When I log in as this user, go to posts section and try to restore deleted posts, Wordpress shows this message: "You are not allowed to restore this ...