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

Custom Post Status to “Disapprove”

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
22 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

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
13 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
9 views

Use Hero Carousel to display featured post carousel [on hold]

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? [on hold]

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
25 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
28 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
11 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
9 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
14 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
37 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
20 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
40 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
17 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
31 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
31 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
43 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
32 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
18 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
19 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
13 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
58 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
19 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
24 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
22 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
27 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
35 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
21 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 ...
0
votes
0answers
19 views

Loop latest posts from subdomain to main domain

If i install Wordpress in a subdomain, can i get latest posts from subdomain and dynamically show them in main domain?
0
votes
1answer
26 views

Inserting an example of the last 3 post on to the homepage

Hi everyone I am new of here, and I was looking for this answer for a while, but I guess that I am not finding the right way to google the question. I do not know PHP, but I know quite well html and ...
0
votes
0answers
20 views

How to make categories display corresponding post with a list of image thumbnails and a title under it?

So my goal is to have my website display each recipe category, when clicked on, direct you to a display with all the recipe post that go with the category you click on. I want the display to be neat ...
0
votes
0answers
25 views

Completely remove “posts” from Wordpress

I am using a plugin which handles a custom post type for me, and therefore I have no use for the original "Posts" post-type. I want to remove this from the menu and remove it's functionality so that ...
0
votes
0answers
19 views

wp_get_attachment_link add post id as query arg

Hello i would like to add a query argument at the end of the href in the image gallery. So for ex: where 36 is the id of the post where the gallery is. This is the code i'm using inside a ...
0
votes
1answer
13 views

How can I display a specific number of post in a category via a url

I'm trying to link to a specific category in my blog but limit the number of posts that are listed. I can link to the specific category via "www.example.com/?cat=6" and after looking around the web ...
0
votes
1answer
20 views

How to display term in archive page?

I want to display 'state' in my custom post type 'job' Archive page. Now my archive page only have title and excerpt. Can you tell me how to modify this 'content-job.php file? p.s. My post type is ...
0
votes
2answers
53 views

Display the latest post from a category in a page

I want to display in page the latest post content from a category. For example, the category foo has the following posts: Hello World Hello Mars Foo bar Considering Foo Bar the latest ...
-1
votes
1answer
37 views

Only show posts belonging to multiple cateogries at same time

For blog post page, I have about 100 posts-categories. If I select 2 or 3 or more categories out of them randomly, for example category A and category B, I hope the blog page can only show posts ...
0
votes
1answer
12 views

My blog “page” used to show a list of posts, but now it's just showing the page content?

I used to have a page called "Blog" with dummy content (it said "hello world" or similar). Off the menu there was a link to www.mydomain.com/blog and this used to fire up index.php and list recent ...
0
votes
1answer
26 views

How to display data in archive page?

I have a custom post type 'job'. I created a archive-job.php . How can I display 'post date', 'city', 'state' in my archive-job.php page? Currently, my archive-job.php page displays a list of jobs ...