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
1answer
14 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
17 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
6 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 ...
0
votes
0answers
27 views

order posts with conditions & meta_key merge

i want a code to orders my blog posts using a "conditions" & combinaisons of 2 meta_key so details: if ( postviews < 20 views in exmple) ==> those posts order with date ==> here ...
0
votes
0answers
18 views

Custom post type permalink throws a 404 error

I am new to WordPress and trying to build a social networking site that has Buddypress installed and one CPT. This website has a custom post type for user blogs, this CPT has posts that are linked to ...
0
votes
0answers
33 views

Total Post type count display wrong, any idea?

Why are the total number of posts not the same? Any suggestions?
0
votes
0answers
17 views

Calculate top authors on the basis of Post Views

I wanted to calculate the Top authors on the single.php page according to the average of the posts views. I have created a function which is calculating the average of the total post views of a ...
0
votes
4answers
40 views

How do you post in a specific page? [on hold]

I just started using Wordpress (free version) using the Sela Theme. I have a menu at the top (including About, Contact, etc.). I want to know how I can post to a specific page without it JUST going ...
0
votes
1answer
41 views

Show posts on front page only

I have a carousel that I want to be posted on the front page only but for some reason the code is not working. The conditional statement <?php if ( is_home() ) : ?> <div ...
0
votes
1answer
15 views

Link to date_query results in Wordpress

I have this line of code: $args = array( 'date_query' => array( array( 'after' => 'January 1st, 2015', 'before' => 'February 15th, 2015', ...
0
votes
2answers
20 views

How to get images only attached from edit post page

I have developed a custom wordpress panel with a custom front-end recently. In single post pages there is a slider. I display the result of get_attached_media( 'image' ) function as the images of ...
0
votes
0answers
12 views

Custom Post Status to “Disapprove” [on hold]

I'm working with the "events manager" plugin and I need help to implement the following: Admin can select custom post status of "Disapprove" which will automatically send an e-mail to the author of ...
0
votes
0answers
27 views

Adding css class to post and styling it

I am new to wordpress development, and I am using the Customizr Theme I am trying to add a CSS class into my wordpress post in order to incorporate styles into it but I am having difficulty finding ...
-2
votes
0answers
23 views

Link between Home.php and index.php [duplicate]

I have home.php which include a big picture and description of my website. and a index.php that will be the blog page that show all the posts. This is my theme folder /themes/mytheme/ index.php ...
0
votes
0answers
14 views

Custom post type not showing in wp_posts table in database using navicat or PHPmyadmin

This is really weird. I created a custom post type and saved a few posts using it. Then I managed to edit and update them. When I came to look in the database for the rows I cant find them. I used ...
-1
votes
0answers
12 views

Use Hero Carousel to display featured post carousel [closed]

I am new to Wordpress Development and I need a few pointers. How can I use Hero Carousel to show featured or latest post in my theme's main page.
-2
votes
0answers
16 views

How to get actual language of a post? [closed]

I have a question related to this post : detect the language a post is written in I copy/paste the code (exactly the same) in my functions.php file. How can I add a custom field "_language" to be ...
0
votes
1answer
29 views

Custom Post Status & Taxonomies

I have successfully registered my custom post types, custom post statuses and my custom taxonomies/terms. All is working fine but... It seems that both the 'categories' column within the custom post ...
-2
votes
1answer
29 views

If meta_key exists then don't select this post?

I'm trying to select all posts EXCEPT ones with a meta_key somekey. SELECT * FROM wp_posts JOIN wp_postmeta ON wp_posts.ID = wp_postmeta.post_id WHERE meta_key != 'somekey' But this is still ...
0
votes
1answer
14 views

WP_Query in functions.php overrides global $post object, even with wp_reset_query()

I've written a function that grabs all posts that are drafts and puts them as a dropdown in my toolbar for easy access to complete. This works just fine. The problem is that it seems to mess with my ...
0
votes
0answers
10 views

How to parse a post and change the way a gallery item is rendered?

I want to use this plugin http://final-tiles-gallery.com/index.html to display the gallery the users insert in their posts, for that I need to use an specific HTML structure so the plugin works, I've ...
0
votes
0answers
15 views

Loop a Custom Post Pagination

I am having a little trouble trying to get my custom post type pagination to loop. The idea to my pagination is to only display a next field with the title of the next post. Once you hit the last post ...
0
votes
1answer
25 views

Allowing Users to Delete Their Posts

I'm trying to allow users to delete their posts, and I'm trying to do that with the; $or_pid = get_the_ID(); if(isset($_REQUEST['p_id']) && $_REQUEST['p_id']>0){ ...
0
votes
0answers
19 views

call post via ajax [duplicate]

I want to call my post or post url via ajax. Currently I call in iframe. The reason I want to show ajax instead of iframe is because with ajax, I can make responsive layout easily. My iframe url is. ...
0
votes
0answers
5 views

How to create a hook that can give points for either how many pages viewed by user, or pages viewed by a user's posts?

I started a blog recently and I liked the achievements idea. I installed two plugins both which I like, one is called Achievements and the other is called WordPoints. Specifically, I would like to ...
0
votes
0answers
13 views

Empty result when trying to fetc post in the future

I am trying to fetch a single post that is either scheduled or published using a custom WP Query. The query is running asynchronously. However I get no results. Here is my code: ... $args = array( ...
0
votes
0answers
40 views

How to add pagination into post showing

I have created a plugin to display all posts on any page by short code. But how do I add pagination? global $wpdb; query_posts('cat='.$cat); $table_name = $wpdb->prefix . "advertisement"; ...
0
votes
1answer
21 views

how to remove entry meta from wordpress archive category and change its display

I'm working with the Bootstrap Child Theme on WordPress. My problem is that I want to remove the entry meta - like posted on date by admin - and also want to change the display of all these posts, but ...
0
votes
3answers
41 views

How to add a class to links inside posts text

Is it possible to add a class to links created with the link button in the posts editor of wordpress. If not is there a plugin that allow me to do that? Thanks in advance
0
votes
0answers
18 views

Custom post type - cannot link custom template to it in my plugin

I have created a custom post type called "syndication" in my plug-in and that all works as it should. However, I want to provide a custom template for the "add" option so I created a file in my plugin ...
0
votes
2answers
32 views

How to Use index.php file for “Blog” Page And this is Not a Home Page

I Created a Page(from Pages -> Add New) Called "Blog" when click the "Blog" menu in header I want to display the posts from default post not Custom Post Type How to do this ?
0
votes
0answers
36 views

How to get all tags of a custom post type by id

simple question, how to get all tags of a custom post type by id? post_type=product. i have tried with http://codex.wordpress.org/Function_Reference/wp_get_post_tags in my post loop and the print_r ...
0
votes
1answer
47 views

Hiding by default specific post status on backend list?

I created various custom post status options (like default ones: "published", "draft" and so on) and one of them is "project closed". I need to hide/exclude by default from post list in the backend ...
0
votes
0answers
18 views

How can users subscribe to searches

How to allow users to subscribe to search queries (for example a user search on the website, using the search form, for "green apples"), and send daily email alert to subscribers when new posts appear ...
1
vote
0answers
14 views

Using $wpdb to fetch posts with meta data

I have a post type "shows" with 500 posts in it. I want to list all 400 in one page listing their title + 5 meta fields and a url to the show post thumbnail. I initially went the classic wordpress ...
0
votes
1answer
40 views

I want to send push notification just after publish a new post

I would like to send push messages from my website to iOs/android users everytime I publish a new post. Which would be the same as execute php code I think. I have tried to paste a php script which ...
0
votes
0answers
8 views

Unable to log in to wp admin after migrating and changing urls

Front end is working fine and site is displaying as it should however we are unable to log in to wp admin. When entering user name and password and clicking log in the page refreshes without any error ...
0
votes
0answers
20 views

How can I hide post title from Categories menu in side bar?

I hope there is someone who can help me about this. This problem makes me crazy since two days. I added "Categories" widget to my sidebar, I have 3 level categories and the 4th one is blog posts. ...
0
votes
2answers
20 views

Query post category & remove any post id

I have category_id=3 and have 10 post in category_id=3 with post_id= 1=>10 How to show list post category_id=3 with no post_id=1,3,5 value as query_posts('cat=3& -p=1,3,5 &showposts=30
1
vote
0answers
17 views

How to render taxonomy in loop of custom post_type

I made custom post type and taxonomy and on my page template I want to render the taxonomy name in my css class. Anyone know how to render it? This is what I have so far <?php $args = ...
0
votes
0answers
23 views

Show author box of custom post type

I have installed a plugin to create ads listing but in the single ads page there is not the metabox author. What I want is to show below any single ad listing a box with listing's author info. I ...
0
votes
1answer
14 views

Link post to blog from a static page

I'm a WP rookie, and I just designed a static homepage that shows the 3 most recent posts in my database. I would like to redirect the user to another page in order to show him the entire blog post ...
0
votes
2answers
61 views

Specific loop in Shortcode

I'm making shortcode and I'm stuck here. Here is code: add_shortcode('service-shortcode', 'service_shortcode'); function service_shortcode($atts) { extract( shortcode_atts( array( 'title' => ...
-1
votes
0answers
20 views

Protected post custom template

I found this great snippet of php to prompt a user for a password from a protected post: function dopasswordstuff(){ if(isset($_POST['homepagepassword'])) { global $wpdb; $post_password = ...
0
votes
1answer
26 views

Calling specific page with wp query

I'm making one page website and I added a custom field on "Page" post type that asks "Use this page as a section:" Yes or No(with dropdown). I called all pages on template-onepage.php(custom template) ...
0
votes
1answer
30 views

list posts from two categories on a page - plugin not working

I've installed this plugin: https://wordpress.org/plugins/list-category-posts/ i've tried using the suggested code to list post which are in 2 categories: [catlist id=64+60] but I don't get ...
0
votes
1answer
29 views

How to calculate the average of a post meta value(Numeric) of a specific author

I am having a website which is currently consist of multiple authors, Currently my website is having a module to count the total no. of views and i am storing this value in post meta as a ...
0
votes
0answers
39 views

Load a single post into a modal

Another one for you guys. I'm trying to load single.php into a modal. It loads, but then it loads the content into the target to open the modal. The Call: <a href="<?php the_permalink(); ...
0
votes
1answer
26 views

Every second post different class in blog view

To assign different classes to every 2nd post in blog view in WordPress adding this code into function.php was suggested as solution. Most people claim it is helpful, but to me it just adds odd at the ...
0
votes
1answer
18 views

How to make post page unique and show it on home page?

I don't know if the title is correct but I'll try to explain my question below. I have created a custom post type "Projects" and the trick is that one project have to be unique and displayed on ...