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
2answers
24 views

Is it possible to have dynamic post id # in add_menu_page()?

I use the add_menu_page function in my custom theme builds but when I export my local copy of the site and import it in the production site some of post id numbers change and I have to update this ...
0
votes
0answers
16 views

Display related posts by category in page

This is a example enter image description here How can I make this.
0
votes
0answers
20 views

Display iframe or embeded posts on homepage

In my Blog there are many blog posts with a combination of iframe video posts and images posts. I need to filter the posts in two categories 1) Posts with Video (iframe or embeded) 2) Posts with ...
0
votes
2answers
460 views

Underscores.me retrieve next / previous post thumbnail in post_nav function

I am using Underscores.me for a project. I'd like to add the featured image (thumbnail) to the previous / next post links. They have a function which I'm trying to edit called THEMENAME_post_nav(). I ...
1
vote
1answer
384 views

Custom Post Type Rewrite To Include Parent Page(s)

I have a page title "more" with subpage "cities-guide". Said "cities guide" page has a loop that pulls in posts from custom post type "thailife_city_guide". My permalink structure is ...
0
votes
3answers
1k views

Password-protected Posts lead to 404 Error

I was just testing the password-protected posts functionality and when I submit the password it sends me to a 404 page. The password I typed in was correct, I made sure. The URL bar says: ...
0
votes
0answers
9 views

Post count is wrong in all categories on backend and frontend

Admin area is showing wrong post count for all the categories (and I have 300+) It's showing more posts than they actually are, even for new categories with no posts at all shows like 5 or more. I ...
0
votes
1answer
585 views

Sort All Posts by Category Name in the Admin Panel?

I'm working on a pretty complicated site where everything is managed by category type including automatic spinner image submission, etc.. Unfortunately, its doggone difficult to manage things when the ...
0
votes
1answer
331 views

Display featured products by category

I have this code in my themes' shortcode to display featured product rating product like this. But I need to get product by category show. Which code do I have to add. Any suggestions? if($type == ...
0
votes
0answers
10 views

Backend Sidebar Add Another Post Menu

Once logged into WordPress, looking at the sidebar menu. How can I make another Post Page Menu with a different name? Then make my own posts under that new Post page. If Pages are pages, and Menus ...
2
votes
3answers
336 views

How to display post tags

I'm converting an HTML template into a wordpress theme and I'm having some trouble displaying the post tags within the functions.php file. What I would like to do is add the following code into the ...
0
votes
1answer
631 views

Load post attached images on a single page site with fancybox

I'm trying to make a single page site that will display posts as thumbnails in some part. Then if a thumbnail is clicked, I want all the images contained in this post to be loaded with fancybox while ...
3
votes
1answer
2k views

Restrict custom post type to only site administrator role

How can I remove this custom post type from being shown in the dashboard for non admin users? /* Add Websites Custom Post Type */ add_action( 'init', 'create_website_type' ); function ...
0
votes
2answers
616 views

Insert data from custom created PHP page into wp_postmeta table

I am working with a Wordpress site and have created a custom page in /home/planmyme/public_html/php/ with the name response.php. On this page I am getting a value to insert in the wp_postmeta table ...
0
votes
1answer
43 views

How to make post button to a random post

As you can see on my website http://www.kieshetsnel.nl/emma-watson-natalie-portman/ I currently have an Arrow left and right on the screen. But when i click next post (volgende keuze in Dutch) I ...
0
votes
1answer
26 views

Facebook share thumbnail not showing until refreshed

When I FB Share any post only thing that appears is text and no thumbnail like this: I need to close this window and retry sharing few times (or just F5 few times) and eventually thumbnail will ...
0
votes
0answers
10 views

How to save posts into another custom table? [on hold]

i am searching around for a function or a plugin that allows me to store posts into another custom table , example my the table for the posts is wp_posts , i want to save them into custom_posts too. ...
1
vote
3answers
3k views

Wordpress removing <p> tags?

I'd already come across a case where Wordpress added <p> tags. However now I'm dealing with the opposite situation. When I add [] shortcodes inside <p> tags WordPress automatically removes ...
1
vote
0answers
11 views

Create a PDF from the rendered post (like displayed in the browser)

I would love to enable our co-workers to download single posts as PDF files. Problem is that every PDF solution I've seen only exports the posts text, but leaves out all the stuff that's rendered or ...
0
votes
0answers
14 views

I am not getting result from php function that is json encoded

So I am trying to build an array of post data. But when I json encoded it I am not getting back the post object data from the database. Here are my two functions public function ...
0
votes
0answers
8 views

“Pagination” for Posts with next/Prev navigation outside loop

I would like to list all posts from a category or all posts on one Page and add a navigation on the right side, so outside the loop which loads my posts. i found this post whick has a similar ...
-1
votes
0answers
7 views

change event tuition

I can't seem to find where I can change the tuition of an event. Can you please tell me? http://www.thrivingroots.org/events/4/living-wild/ Thanks! Daniella
3
votes
1answer
931 views

Search posts by post author name

I want to search posts publish by particular author. For this purpose I added a filter in functions.php: function wpse_29570_where_filter($where){ global $wpdb; if( is_search() ) { ...
0
votes
0answers
8 views

How to retrieve a post by inputing the url in a custom field and displaying it on an options page

If have an options page where I have a custom text field and I want to paste a url of a post in that custom field and retrieve the Post Title and Excerpt and display theme above the custom field and ...
0
votes
0answers
11 views

How to Edit Layout of a Particular Post Format?

I am looking to edit my theme layout of the aside post format. I have already included the add_theme_support() function to include the aside option when creating a post. However, the layout of an ...
0
votes
0answers
15 views

How do you remove the ability for a user to click on a blog title to redirect you to the blog page?

I am building a blog on Wordpress, but I want all the content for each post to be displayed under one page, (ie. if I had 5 posts on my blog page, they will all display on that one page). But if I ...
0
votes
0answers
24 views

Loading posts from another wordpress database on the same server

I've searched quite a while and found several solution but apparently I'm doing a lot of stuff wrong. I'm having 4 different Wordpress sites and need to load the latest 2 posts of each site. For ...
-2
votes
0answers
27 views

how to get custom woocommerce product description excerpt? [on hold]

Here is the code I have in product.php <?php tabs = apply_filters( 'woocommerce_product_tabs', array() ); ?> <div> <?php if ( ! empty( $tabs ) ) : $i=0; ?> ...
0
votes
0answers
33 views

Query post by meta key of another table

Im using event calendar plugin where I can set event date for posts and it shows in calendar widget. Everything is working as inteded but I would also like to query post by event date. I know how to ...
1
vote
1answer
537 views

Change label of title field for posts in the backend

I am trying to add some HTML to the title label in the backend of WordPress. Attempt 1: I am using the following (simplified) function: function change_post_titles() { global $post, $title, ...
1
vote
2answers
1k views

Get posts of ONE taxonomy term of custom post type

I have a custom post type called portfolio and a taxonomy called locations. In the taxonomy I have various terms, like paris, berlin, london etc. How can I get only the posts which are related to ...
-1
votes
1answer
28 views

Show all posts shows a blank white page in WP 4.2.2

In show all posts I have changed the number of items pe page from 20 to 500 and after that I got a timeout as it could not display all the posts. And now every time I go to show all posts I get a ...
0
votes
1answer
36 views

Show more than 200 images in one post

I have gallery post and its have more than 200 pictures in single post. So, when i open this post, Its take more than 2 min to open page, and the images not open fast. What can do ?
0
votes
2answers
33 views

Display News Posts by Day with Post Counter

I am building a site client who makes anywhere from 20-50 news posts per day. I'd like to have a news feed where it shows the date / post count as an H3 and then list all the posts for that day ...
-1
votes
0answers
15 views

Incorrect paragragh spacing when adding images [closed]

http://i.stack.imgur.com/ITYig.png Theres too much spacing between the paragraph and picture. I can't seem to fix it.
-1
votes
0answers
14 views

Replace existing pages with new pages, keep menu links

I've searched for this and found similar, but not the same issues. I basically want the same functionality as 'Enable Media Replace' but for replacing pages and posts. I'm redesigning an existing WP ...
0
votes
3answers
561 views

Get custom post type parent category

I'm creating a custom post type like this: function btp_work_register_post_type() { $args = array( 'label' => __('Works', 'btp_theme'), 'labels' => array( ...
0
votes
1answer
718 views

Listing Specific Categories from Current Post with Depth

I've been on this for sometime and been having a ton of issues to find a proper way to do what I'm trying to achieve. An Example would be as follows: I have a featured Image with a rollover and I ...
0
votes
2answers
532 views

Display post category in foreach loop with category link

I have the following code to show current author post lists with post thumbnail, post title, post date and post category. function my_get_display_author_posts() { global $authordata, $post; ...
0
votes
1answer
11 views

Display Published Posts Count for Certain Time Period

I need some kind of plugin (if it exists) or a wp query which would display number of posts published within a certain time range. For example: I need to know how many posts have been published ...
0
votes
0answers
23 views

Front-end Posting: Allowing user to view/edit their pending post

So, I have a front end set up. I can write and submit a post. I have a list of my published and pending posts, which I can view and edit as an admin. I created a subscriber, but 'he' cannot access ...
0
votes
0answers
7 views

Post / Product publish time not accurate enough

I am automatically uploading 800 new products to woocommerce each week, after removing all the previous ones. But the next / previous product buttons are not working strictly chronologically as it ...
0
votes
0answers
7 views

Link Post Titles to External URLS

I have a site full of 1000s of newsfeeds. When user clicks on the title, it takes the user to the article page, then the user must click 'read full article' to go to the external url. Is it possible ...
0
votes
0answers
17 views

Delete/remove post excerpts?

I have post excerpts in my posts generated by some plugin. I do not use them. Is there any function which will delete them on post publish, or even better remove that feature?
0
votes
1answer
9 views

How to get all inline images in post content?

I want to get all inline images in the post content. The get_children() method doesn't work for me because they could add the same photo twice. Also this only gets "attached" images, and they could ...
3
votes
1answer
255 views

Getting Position of a post in a category

I have one post id x, one category id y. I want to retrieve the position at which the post will appear in the category. It is confirmed that the post is from the category Post order will be based on ...
0
votes
1answer
773 views

Auto insert More tags in all posts

I have a theme for my mobile site that requires the <!--more--> tag in my posts for it to display an excerpt of my post's content. I've got over 2000 posts already, and its going to take ...
-1
votes
1answer
371 views

query_posts different amount of posts per page [duplicate]

I have a posts_per_page query to paginate multiple post types, which works great! Now though, as it paginates it to show (in this case) 100 posts per page, I'm wondering if you can show 100 on page ...
0
votes
2answers
46 views

How to convert template to posts

I have a theme I created and uploaded to WordPress. I need to make it WordPress friendly so I can easily edit posts, instead of having the same website but just hosted on WordPress. How would I make ...
0
votes
0answers
25 views

How to query and group posts by category?

/* * Loop through Categories and Display Posts within */ $post_type = 'post'; // Get all the taxonomies for this post type $taxonomies = get_object_taxonomies( array( ...