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

Flexslider+Vimeo APi in WP

I created a custom post type using flexslider. It supports video (vimeo/youtube) and images. It works but I need to add the vimeo api (froogaloop) because I need: The video to automatically stop ...
-2
votes
2answers
29 views

Windows 10 Printer that Sends to Wordpress [closed]

Is there a way to "print to wordpress" from Windows (10) desktop? So lets say I am looking at a PDF and I want to create a new wordpress post from the PDF, I select print, select "wordpress printer" ...
0
votes
2answers
48 views

Multiple comment forms on a single page

I have to load multiple posts on a single page. The situation is different. The client ask to reorder the posts, that the current post of the category becomes first and all the rest are next. Then on ...
0
votes
1answer
14 views

Custom Taxonomy From Database

i want to create one site with Wordpress and for that i have some weird requirement. i wants the site like, when admin write any post at that time he have to select then product for that page. (i.e ...
0
votes
1answer
55 views

How to Save settings of custom tab product page in admin side in a database?

I have following code : <tr> <th><?php _e('Custom Stock Message'); ?></th&...
0
votes
2answers
68 views

How to display post list in a table layout (multiple queries in single loop)

I am setting up an events page for my website. This page is using a loop to display a list of acts performing at different venues month-by-month. When a viewer comes to the page, they use a simple ...
0
votes
1answer
45 views

Edit custom fields in posts list

Is it possible to edit (or add) custom fields directly in posts list (/wp-admin/edit.php)? I need to do it quickly for many posts (1000s) so editing every and each of them would take ages to ...
0
votes
0answers
19 views

Where to direct the “action” of a form with a custom plugin to upload a post?

I'm trying to create my very first very own plugin to upload posts into WordPress. I'm learning by looking at another post uploader plugin out there, but I was really confused about the action of the ...
0
votes
1answer
12 views

Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )

I was learning from the WordPress codex about global variables and after var_dump($post) I found out that $post has a property called comment_count I was wondering whether I can directly use $post-&...
0
votes
2answers
32 views

One Post with different content, depending on a Page

My goal is to make a user manual WP site for the web app that my company is selling. My issue is that the web app has some differences in functionality for different clients. For example, we have a ...
0
votes
1answer
28 views

How can I add a class to particular paragraphs in my post?

The effect I'm looking for in the end is to have the first line in some paragraphs bolded. These would be the first paragraph of each section in my post. This kind of effect is used on this Bloomberg....
1
vote
2answers
30 views

widget should display post archive by year and on click also by month

I want to display the post archives like seen in this picture. Shown by year and on click it should open up the months. I am not sure how to approach this, would you customize the standard WordPress ...
0
votes
1answer
23 views

Exclude current custom post on single post

I'm trying to exclude the current custom post that is viewed from a list. I've tried with exclude but it still displays it. Here is the code I have on single-works.php: <?php $currentID = ...
0
votes
0answers
80 views

Force update all posts in custom post type, no content changes

I have imported data from a custom post type that has location data for a map plugin (Progress Map). I have about 500+ posts each with different location data. For some reason the location data isn't ...
-1
votes
2answers
73 views

How to create a loop that will display one post and stop?

I am trying to create a part on my wordpress theme that will only display one featured post. I have installed this plugin - https://wordpress.org/plugins/featured-post/ . I know I am supposed to ...
0
votes
1answer
16 views

Wordpress URL question

I have a web page that I created and in doing a google search for the company and my name a weird page came up. For private reasons I will not reveal the company name so I will use a fictitious ...
0
votes
1answer
51 views

Creating widget - ask for selecting a post in the admin panel

First of all, sorry for my English, I'll try to make it understandable. I'm new on WordPress; I already have created a few plugins but they didn't needed admin configuration. Now I'd like to make an ...
0
votes
1answer
53 views

Creating an admin meta box to save post as pending

The workflow when using Wordpress to change a draft post to pending involves several clicks and button presses, especially on mobile So to simplify my process I would like to create a meta box that ...
0
votes
1answer
61 views

Restore woocommerce orders

Recently my server team replaced my database and they put our previous Database . So we lost our order details of one day[particular day] . Now the server team give the backup that contain the lost ...
0
votes
1answer
39 views

add div after image in post [closed]

I want to give my photos a special style such as this link "CSS3 Hover Effects" For this, I must add a div after any image link in any post What should i do For this style ? I am using Hueman Theme ...
0
votes
0answers
47 views

Create custom post type and content of custom post type display in a single product page of woocommerce

Code to create custom post type is here and it's working: $args = array( 'labels' => $labels, 'description' => __( 'Description.', $this->plugin_name ), '...
1
vote
1answer
50 views

Genesis + Ajax + Jquery | Failling to call action

I want to execute an action, without realoading my page. I folllow this tuto https://codex.wordpress.org/AJAX_in_Plugins But each time my page reloads, and I can't have the result value. Here is my ...
-3
votes
1answer
47 views

hide particular category post from front page only [closed]

i have setup a new wordpress blog and have few categories one is called news and it updates too frequently and less important so I want news category posts to be excluded from my home page only and if ...
0
votes
1answer
85 views

Get post embedded image caption

I am trying to get the caption of post embedded images to then use on a lightbox. This is my code: function my_theme_prefix_content_gallery( $content ) { global $post; $args = array( ...
0
votes
0answers
17 views

Redirecting a Post to a Page Because the Page is More Flexible

Wonder if there is an acceptable way to do this. I am using a theme on this site that allows me a good amount of functionality for pages that isn't there for posts. So, I can create a page and have ...
0
votes
1answer
35 views

How to display all posts assigned to some tag?

I have tag url - example.com/tag/new-shoes and I have 2 posts tagged with those keywords new-shoes. I would like to display on this url example.com/tag/new-shoes all posts (titles and first keywords ...
3
votes
1answer
35 views

Where is the “ancestors” post object attribute?

I usually work with the ancestors attribute of the post object: if ( in_array( $target_id, $post->ancestors ) ) { // do whatever } But while debugging the post object I've seen that there is ...
0
votes
1answer
28 views

How to create a custom page in woocommerce?

I would like to create a blank page, which is used to list out the product by the category , so far I have found some code like this: $args = array( 'post_type' => 'product', '...
0
votes
0answers
21 views

Multiple Custom Post Type loop logic

In short this is what I want to archive: [template body] - default post title - default post body [custom loop | tabs] - tab 1 -- tab 1 title -- tab 1 content --- related articles to tab 1 by ...
0
votes
0answers
35 views

Featured image in custom post is being disabled

I'm trying to create a custom post as a plugin and so far I'm having some trouble trying to enable featured image on my custom post type. Right now I have created two custom post types but the problem ...
0
votes
0answers
19 views

Group posts by month by custom metabox?

is there a way to do this ? August 2009 11 Title of the post of the 11th day of August 15 Title of other post of the 15th day of August 20 Title of another post of the 20th day of August July 2009 4 ...
0
votes
1answer
136 views

Wp_query WooCommerce products

I'm currently developing an e-commerce store using Wordpress and WooCommerce. I'm planning on creating a basic product filtering system and was wondering if it's possible to wp_query the results shown ...
0
votes
0answers
45 views

How to delete a stuck post using phpMyAdmin

I was attempting to change some leftover http:// references in the DB using Update/Set SQL statements. I was getting confident and started doing them in bulk and stopped noting exactly what I was ...
0
votes
2answers
38 views

Display taxonomy term only if there's a value

I have a post type which I want to add some taxonomy values (tags) Example Post Type One City: London, Paris Color: Red, Yellow Language: In the example above, Language doesn't have any value, ...
0
votes
0answers
19 views

Custom Fields with pre-filled content

as this is my first post here I first of all like to say "Thanks" because I found a lot of hints here for my problems in the past. Now I have to ask for the first time: We are offering news under ...
0
votes
2answers
118 views

Filter posts by author and category simultaneously

I'd like to include in my website a feature for users to only see posts from a certain author and a certain category. I'm able to do it separately but I can't seem to understand how to do it ...
1
vote
0answers
14 views

Prevent additional top level categories but allow more children

Is it possible to prevent additional parent categories being added to posts but allow children categories to be added to predefined parent categories? For e.g.; Food & Drink -- Mexican -- ...
1
vote
1answer
89 views

Enabling post thumbnails for custom post type

I'm writing a custom post type as a plugin and trying to figure out how I can enable post thumbnails within plugin documentation/template instead of enabling it in the functions.php. I tried adding ...
0
votes
1answer
27 views

List Authors For Current Category

I want to list all unique authors that have posts in the current category. My code (location: wp-content/themes/custom-theme/category.php) <div class="container"> <div class="row"> ...
0
votes
2answers
81 views

Add “Posted on” to post date

How can I add the words "Posted on" before the post data in a Twentyfourteen theme's post? The default is only to show the date and clock icon. I'm not sure if this is a basic modification or if it's ...
1
vote
1answer
41 views

Getting the current author (it has changed) of a post, not the original author

I'm trying to get the author's avatar, first name and last name and their bio(description). Luckily I found out how to do do just that, using several functions from the WordPress codex. What I'm ...
0
votes
1answer
41 views

How can I filter the post of a CPT by taxonomy Term in admin meta-box dropdown?

I've searched frantically trying to find a solution for this. I'm trying to generate two drop-down fields within one side, Meta Box. The first drop-down field should be populated by the terms of a ...
0
votes
0answers
79 views

Image caption in Magnific Popup for images embedded in a post

I am trying to implement functionality to open my post images with Magnific Popup. I have the following script which works fine: add_filter('the_content', 'my_addlightboxrel'); function ...
0
votes
0answers
26 views

Post title replacement

How do I change many post title only which are in drafts. I need to replace a list of words with another. I'm using latest WordPress version 3.9.2
1
vote
1answer
46 views

how to remove dash (-) post status from post title on posts listing page wordpress

I want to remove post status from post title. E.g Currently on listing page post title comes like "Hello World - Draft" or "ABC - Completed" I don't want - Draft or any other post status. Note* : I ...
0
votes
0answers
38 views

Automatically Paginate Posts after specific number of words

I want to insert <!--nextpage--> (for paginating posts) after a specific number of words, and I want it to keep inserting the tag until the post ends. There is a plugin which does a similar ...
0
votes
2answers
73 views

Auto update post title and slug when post status is changed

I need help. Thanks in advance. I need a function that update post title and slug with some default title + current date when post status is updated from draft to published. I use this one to update ...
0
votes
0answers
22 views

Use audio file like image featured

Attempt to get the url of an audio file in post content to display in the loop of the home page. I can only get it if the file is uploaded at the time of creating the post, but if I go to a post ...
0
votes
1answer
32 views

Worpress search for specific Post Type

I am doing a wordpress site and use a custom post type 'studentinfo'. I want to build a search form and search template that will retrieve only search result from the specific post type studentinfo. ...
0
votes
0answers
24 views

Is there way to update another table when updating wp_posts table?

I have WordPress site with many custom post types. Everyday, nearly 100 posts(posts and custom posts) area created (Some posts are created by different plugins). When a row added to wp_posts table I ...