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

WP_Query custom field pass the post id

I'm using WP_Query with ACF(Advanced Custom Fields) I'm building a news portal, and I'm trying to pass related stories from 1 post which is top_story = true. In another WP_Query I want to print the ...
0
votes
0answers
23 views

Adding GUI and functionality to a custom post type enabling working with non wordpress table

I've created a custom table in the Wordpress DB with all the needed functions for working with the table (insert,delete,update etc...) I also created a custom post type, on which I wish to add a GUI ...
-1
votes
1answer
25 views

Post deleted in trash [closed]

I need a plugin or some method to recover deleted post of trash.
0
votes
0answers
48 views

Get Page ID of blog homepage

my start page in WP shows the latest posts. I added some meta fields to the start page in the WP backend which I want to access before the list of recent posts starts. I try to access the meta values ...
0
votes
0answers
10 views

Popup panel is only displaying 1 entry ignoring all others

I have a popup panel being used for when someone clicks on view bio it will display their bio along with their name and headshot. As of right now I have four members being displayed M1 M2 M3 and M4. ...
0
votes
0answers
15 views

How to show same posts on different WordPress installs?

I have 2 websites using WordPress on the same server and the same database with spesific prefixes. I want to show the posts of the first site in the second site. For example: I have 100 posts in ...
1
vote
0answers
36 views

wp_update_post adding a -2 to the post slug

I've recently created a php file that is creating posts using the wp_insert_post function. This is working great and its inserting the post as it should do. I am leaving out the post title as I want ...
0
votes
0answers
16 views

Filter post by post title/content

I have a problem on my site. i have a automatic posting by instagrate the problem is sometimes my post gets duplicate. i want to filter my posts by their post title. i have this setup on page to ...
0
votes
1answer
16 views

How to list all names and descriptions of a custom taxonomy

I have a custom taxonomy (toolkit-sections) inside a custom post type (toolkit-tools) and I'm looking to just list the taxonomy names and descriptions from toolkit-sections on a homepage. I don't ...
0
votes
0answers
18 views

Hide Certain Tags on Single Post Page

I'm trying to hide certain tags from single posts pages. I've googled and found 2 codes but both are hiding the whole post page. I'm using a theme that needs using 2 tags ticker and slider to show ...
0
votes
0answers
15 views

$authordata related posts by author

I created a widget to display related posts by an author but the code no longer gets the posts by author. I'm guessing something has changed in Wordpress and see some reference to the_author_meta but ...
0
votes
1answer
31 views

What function publishes a post when you click the publish button?

I'm trying to track down an issue with a plugin. In vanilla WP when you are on the post edit screen (/wp-admin/post.php) what function is getting called to change the post status from draft to ...
1
vote
2answers
81 views

Looping through posts per category gives same posts for each category

For a specific section on my website I loop through some categories and get the three latest posts in that categorie and list them. Like so: <?php $categories = get_categories(array('exclude' ...
0
votes
0answers
18 views

Got portfolio thumbnails on homepage. need to filter them using filters

All i'm trying to do is add a working filter to existing portfolio thumbnails (Its already there without excerpt or post title - as i wanted it) I've also got the filter terms on the page, with the ...
0
votes
1answer
39 views

Update all images url imported from HTML pages

I have to copy content from different website. I copied whole webpage and paste it in my post. All works fine. I also get images in my post but they are still linked to older website. Is there any ...
0
votes
0answers
17 views

WordPress : Update old image_default_link_type to post

I have this code that update image_default_link_type option value to post. ans it work good for new post. But the old post i cannot update the images in old post to post link. How can do that ?? ...
1
vote
1answer
24 views

Need help targeting a custom post type with conditional tags

I found some code online to create content blocks on my WordPress blog. I use a content block at the bottom of the sidebar of my page for a shopping widget. Here's the relevant code from ...
0
votes
2answers
30 views

Adding featured image messes up page layout [closed]

I got someone to design the wordpress side of my site and now I need to try to understand what they did and would be grateful for advice.I have a Page that shows sections and stages (which are ...
0
votes
0answers
39 views

Post List Widget with custom posts and editing the Read More Link

I actually have 2 questions, one related to the Post List Widget, the other concerns the "Read More"-link. ad 1) I want to show a certain category of posts (only one post at a time) in this widget. I ...
0
votes
0answers
35 views

Different post design as per category

My site has two types of categories ( training & hard-reset ). Under each category there is a slight change in the design for posts. repairmymobile.in/hard-reset/datawind-ubislate-7cz-tablet/ ...
0
votes
1answer
27 views

In what context should Categories and Tags be used

I was thinking on writing up a post called "Review: Ni no Kuni" which would be a personal review on the title game having finished it. Under categories i could make a "Reviews" Category to group all ...
2
votes
2answers
59 views

Convert IPTC keywords to blog post tags

I'm a total newbie regarding to wp or coding or anything like that but I manage to get things done with a bit of reading. I need a way to convert IPTC extracted keywords that are attached to it's ...
0
votes
1answer
34 views

How to get the current user post and it's ID?

I have a site setup so users can publish a post via the frontend, what happens is, there post is posted as a status, 'Pending Review, in a custom post type. How can i get the post ID for this ...
0
votes
0answers
21 views

Get the post id from a plugin

WHile Building a plugin I need to get the post id from the function defined inside plugin.So i used global $post; $postid = $post->ID; echo $postid; and $id = get_the_ID(); echo $id; ...
0
votes
1answer
74 views

If WooCommerce Stock Updates, Also Update Specified Field Values

I would like to have a function that should update the Est. Dispatch Date Field ) in whenever WooCommerce Stock Value / Stock Amount changes even when order is placed and stock amount is reduced by ...
0
votes
0answers
43 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
48 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
19 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
60 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 - ...
1
vote
3answers
69 views

set role specific screen options in post summary page

I need to set different screen options(title,author,categories...) in post summary page for non admin users(editor,author..) which can not be altered by user him/her self. Example : This is the ...
1
vote
2answers
34 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
26 views

New Gmail email to a WordPress new post? [closed]

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
1answer
38 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
14 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 ...
0
votes
0answers
14 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
23 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( ...
0
votes
0answers
13 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
14 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
47 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
14 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', ...
0
votes
2answers
54 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
50 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
14 views

This snippet is making my post display as an attachment post

I've added this function to my functions.php in order to get a field to set if there isn't 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
26 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 ...
0
votes
2answers
28 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
86 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
65 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
16 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.