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).
3
votes
1answer
178 views
How to show list of posts by author and category?
Let three categories and their IDs:
cat1 = 1 (parent)
cat2 = 2 (child of cat1, parent of cat3)
cat3 = 3 (child of cat2)
Let each category has 3 posts, they are: post1, post2, post3.
And each posts ...
2
votes
1answer
34 views
How to display by default only published posts/pages in the admin area?
As it is, WordPress displays by default all the pages/posts in the pages/posts list in the admin area, no matter what their publishing status is.
I have a lot of drafts, but usually I'm much more ...
2
votes
1answer
45 views
Save list from a custom meta box?
I have a simple list (ul>li) which is manipulated with jQuery UI in a custom meta box.
How would I go about saving the contents of the list during post save?
I already have the save function ...
2
votes
1answer
63 views
How can I list random authors from current post category?
The following lists authors of the current category.
But I want this to be a list of 6 random authors from current post category.
foreach((get_the_category()) as $category) {
$postcat= ...
2
votes
1answer
189 views
pagination hook doesn't work with search results
I use my custom Pagination function on my web site;
#Pagination
function pagination($prev = '«', $next = '»') {
global $wp_query, $wp_rewrite;
...
2
votes
1answer
51 views
How do I batch create revisions of all posts?
I cleaned up an old-site from pasted tags, manually created lists, etc, and I'd like to keep the old posts as "revisions", so we can easily "compare" with the old posts and retrieve/revert the ...
1
vote
1answer
23 views
Force authors to Preview a post before publishing
I'm looking to find a way to force authors (including admin & editors) to preview their post before publishing. Is this possible, if so does anyone know the easiest way to achieve this?
I'm ...
1
vote
1answer
37 views
How to show single post page as home page
I want to start a funny images website but I have come across a dilemma. I want the website to display 1 post ( not the thumbnail) but the full post on the home page. (the most recent post). Similar ...
1
vote
1answer
34 views
search posts by post author name
I want to search posts publish by particular author. for this purpose i add a filter in funcions.php as
function wpse_29570_where_filter($where){
global $wpdb;
if( is_search() ) {
...
1
vote
1answer
40 views
Query Posts With Over 1000 Views
The code below is from this link. It basically creates a hit counter, but I'm probably gonna have to do this by IP.
How do I make a WP_Query, where only posts up to 1000 views can be seen on the ...
1
vote
1answer
56 views
Saving category to a post, before publishing the post
I have created a link from the dashboard, which goes to add new post, but with a category already selected for the post - but the post will not belong to this category before publishing - this is a ...
1
vote
1answer
88 views
Query posts from different categories in multisite
In my planed multisite installation, I want the members to be able to post in one of two different categories.
Members in A can post in 1. Members from B can post in 2. All members can comment ...
1
vote
1answer
44 views
Cannot retrieve a custom RSS field from posts
The goal is to display a featured thumbnail micro thumb as a custom field in RSS.
This is what I've done:
//theme functions.php
function rss_post_thumbnail($content) {
global $post;
...
1
vote
1answer
82 views
Custom order for Mysql array
I have a Page of Posts, each post has a Custom Field "expired" which contains a date in the format YYYY-MM-DD which is used to order the posts. This date is used for a script that tells the visitor if ...
0
votes
0answers
23 views
How to delete many posts or CPTs at once
For test purposes I often create many posts on my local site. Sometimes I need to clean everything and it takes ages to remove posts screen by screen. Is there a faster way?
0
votes
0answers
25 views
Cant retrieve $_POST inside page, just header
Here is the full code:
http://codepad.org/BpqQ3Xm0
Line 113, I am sending $_POST["popust"] ; And I use it to compare value at the top -line 33. But if I want to echo it, print_r, var_dump, inside ...
0
votes
0answers
25 views
Get Related Posts (custom post type) of Custom Taxonomy, Most to Least?
I'm working on an image page feature which retrieves the MOST related posts ("image" custom post type). So images with most terms in common should be listed first. But this does not seem to be ...
0
votes
0answers
14 views
How to display related post with custom post type detail page?
global $post;
$terms = get_the_terms( $post->ID , 'product_tags', 'string');
$do_not_duplicate[] = $post->ID;
if(!empty($terms)){
echo ...
0
votes
0answers
23 views
Dissapered all posts by 2013 year
Dissaperd all posts posted in 2013. There are no posts, images and tags for this year. I've checked it in the phpMyAdmin and find them. But they don't shows in administrtor panel. Any idea? Thanks!
0
votes
0answers
26 views
Match tags against posts that contain a custom field tag value
I wish to crossreference specific tags with my posts in order to create a tag list of certain values. In this particular case, some of the tags are company names, and I want these names output in a ...
0
votes
0answers
36 views
Remove featured image link not working
I added a featured image to my post through set featured link in backend. Not when i click on remove featured image, it removes it . But when i update the post then, The featured image still comes ...
0
votes
0answers
71 views
Strange problems when I try to insert HTML\XML code snippet in my posts
I am experiencing some problems while trying to insert XML code snippet into my WordPress articles.
I have just read this tutorial: http://codex.wordpress.org/Writing_Code_in_Your_Posts
I am using ...
0
votes
0answers
43 views
Display all posts a registered user comment on
I found this plugin/code which shows recent comments of a particular user in WordPress.
How can i display a list of all posts a registered user comment on?
I need to display posts titles rather than ...
0
votes
0answers
36 views
Do someone know how to fetch post images sizes via MYSQL Query?
i am developing a web-services using PHP with adodb classes. what i trying to do is that i need the image sizes of the post i.e(thumbnail, medium, large) size. I am able to fetch the post original ...
0
votes
0answers
15 views
grab and save ,remote file to wordpress attachement
i've tried to edit Grab and Save plugin : http://wordpress.org/extend/plugins/save-grab/ it works only for image grabbing only, i want it to grab other files like abr rar zip etc... when i edit this ...
0
votes
0answers
18 views
Instead of showing the post it just shows the URL
When I tried to share this link http://www.j1studios.com/archives/6032 on Facebook, it would just repeat the URL and not show the title of the post, or the image. It's as if the link is broken.
0
votes
0answers
16 views
How to display links from my post on my home page
I would like only links from a post to appear on my homepage. Then when the user clicks the link it will take them to the actual post. Similar to www.rr.com homepage. Any help will be appreciated.
In ...
0
votes
0answers
23 views
add text to posts and pages automatically
i wanted to be automatically added specific text to the POSTS and PAGES while publishing, then inserted the codes into functions.php:
function add_before_content($content) {
if ( 'post' == ...
0
votes
0answers
107 views
Echo Custom Post Types - show project with taxonomy/category x on template y
I only want to show up projects with specific IDs. Now I have a filter, which allows me to select between different preseted taxonomies. Fine so far. On on specific template.php I want to show up just ...
0
votes
0answers
26 views
display sub categories assoccited with each post in a category archive page
i have wordpress blog with many posts. each posts associated with many categories and sub categories. i want to display sub categories assoccited with each post in a category archive page.
for ...
0
votes
0answers
27 views
Visual Mode doesn't Work
The "visual" tab when editing posts appears but when I click on it it doesn't do anything.
I've tried disabling all plugins, disabling visual mode then clearing cache then reenabling visual mode, ...
0
votes
0answers
33 views
custom siderbar with custom cat post widget does not include content
I am trying to make a template with a left sidebar. In that sidebar I want to insert custom cat post query using a text widget so I can format it correctly the way I want. However when I do The ...
0
votes
0answers
97 views
Custom post types and custom taxonomy posts are not showing
I have got a post type set up called 'shops', attached to this is a taxonomy called 'Types'.
When you search through each category in the category menu it looks for the posts and displays them in a ...
0
votes
0answers
10 views
Post Title in tool tip next and previous posts
How to display post title in tool tip of previous and next posts. I tried using next_post_link and previous_post_link these functions. But no result.
Is it possible to display with these functions? or ...
0
votes
0answers
15 views
display last import (posts)
Had a good search on Google and here for this but no luck.
I've recently imported 45 posts into a site. There are already 300+ posts in the site spanning 4 years. I tried to create a new author when ...
0
votes
0answers
46 views
how to add interstitial page?
I am trying to get get the interstitial page. I have a plugin that fetches articles from an API. What I want is when user click on fetched article's link it should take them to a dynamic interstitial ...
0
votes
0answers
81 views
Foreach displaying all posts and not the value set in WP back end
Pagination just isn't working correctly with my foreach code. I have to manually set the post per page count for it to work but I'd like it to use the WP back end value (Set in settings > reading) ...
0
votes
0answers
16 views
Delete Image and Associated Posts
When I delete an image from the media library, I'd like to automatically delete the post that uses the image. Any ideas?
0
votes
0answers
59 views
Wp Calendar: Is there anyway to show upcoming events?
Okay I have some basic knowledge of php MySQL and so on, but I can't figure out Wordpress' rules for showing future events. My site USERS can post events, they select the date of event in form they ...
0
votes
0answers
16 views
How to display previous posts from the same blog in WPMU
My main site is http://mysite.com and i have installed WPMU (subdirectory) for this domain. I have several blogs such as http://mysite.com/blog1, http://mysite.com/blog2....
I am finding a way to ...
0
votes
0answers
19 views
Point post link to its sub-categories
Good day.
I have a post that when clicked on, like expected, points to its own post, that has a category 'products'. But I want the post to link to its own categories page(see link), and not the post ...
0
votes
0answers
17 views
My last post gets duplicated
I have got this problem suddenly,
My last post sounds getting duplicated .when I try to edit the duplicated one, it leads me to another one .
my link : www.moroccoenglish.com
the duplicated post ...
0
votes
0answers
32 views
Spam posts in wp_posts
When i'm hanging in myphpadmin I've noticed 62 spam posts in wp_posts. Their post_author value is 0 post_status value is 'spam'
Should i delete all of them or is it more secure to keep them like ...
0
votes
0answers
14 views
add the new parent category for the already existing category
How to add the new parent category for the already existing category. For eg, Post1 has a category cat1 if i want to add the Post1 under parentcat1 with the child category of cat1. the post should be ...
0
votes
0answers
134 views
How to change the permalink structure of the default post type
This Custom permalink structure only for default posts looked like the perfect answer:
add_action( 'init', 'my_new_default_post_type', 1 );
function my_new_default_post_type() {
...
0
votes
0answers
85 views
Buddypress notification on post comment reply
I have one question. Is it possible to make when, someone reply to comment, the author of parent comment to recieve notification in buddypress. For example, if I reply to user comment in notifications ...
0
votes
0answers
28 views
Category “checked” for continuous upload + Critical Question
In contrast to Newspaper & Blog, an editor has to upload more and more news in categories for newspaper than a blog.
In newspaper, there might be not less than 30 news in a category, like:
...
-1
votes
0answers
48 views
Sort post in a category alphabeticaly with the stick in that category on top?
I need to be able to sort posts in categories alphabetically with the sticky posts in that category listed first on top also sorted alphabetically.
Apple*
Banana*
Watermelon*
Coconut
Grape
Orange
...
-1
votes
0answers
14 views
fields hidden and checked checkbox not present in $_POST
I've created a my own template page with a simple form.
All fields are present in the $_POST vector except the default checked checkbox.
I know that the unchecked checkbox will not be present in the ...
-2
votes
0answers
30 views
Get all posts starting with first two letters in Wordpress
I have a plugin in which an alphabetical list is posted where people can click on a letter and they get the posts with that letter. So if they click on A, they see all post titles starting with the ...



