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).
0
votes
1answer
114 views
Display custom post counts for author , not default posts
<?php
global $wp_query;
$curauth = $wp_query->get_queried_object();
$post_count = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '" . $curauth->ID . ...
0
votes
1answer
24 views
Custom Post Type post not appearing
I am new to WordPress. My problem is that I created a custom post type named Atividades and when I create a post, it does not appear on the website.
// fuctions.php
add_action( 'init', ...
0
votes
1answer
49 views
Count posts within a custom post type and specific category
I'm looking to count how many post live within the custom post type called "videos", but only the ones from the category called "work".
<?php $count_posts = wp_count_posts('videos'); echo ...
0
votes
1answer
30 views
Top 30 Songs using Custom Post Type
I have successfully created a Top 30 songs ranking via custom post type. Now im stuck with adding "Peak Position" post meta. I don't know how to program it. Peak Position is the position where the ...
0
votes
1answer
77 views
Disable feeds for specific custom post types
I want to remove the feeds for specific custom post types. Most recommended methods are not clean. There seems to be a option called $args->feeds but this does not work within the ...
0
votes
1answer
86 views
Count number of posts of current month
I am trying to echo the number of posts for the current month from all categories but it isnt working.
<?php
$month = date('m');
$year = date('Y');
$countposts = ...
0
votes
1answer
50 views
Unable to add TAB character to post?
I am using the CodeColorer plugin to display source code in my WordPress. I am trying to have my code indented so that it displays properly on the website. However, when I try to add the following ...
0
votes
1answer
172 views
Wordpress schedule posting not working, if i added define('DISABLE_WP_CRON', false); how do i fix it?
I have Wordpress 3.5.1 and I use Bluehost hosting service. When I schedule posts after that time passed, WP posts dashboard shows "Missed schedule" message under the date. Then I checked my ...
0
votes
1answer
41 views
Customizing Comments on Posts
I have implemented custom code for generating comments on post page using callback function in functions.php.
function MYTHEME_comment($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ...
0
votes
1answer
65 views
How can i put image to come first than the title?
im editing my posts and when i create one, it comes:
TITLE
IMG
CONTENT
and i want it like this:
IMG
TITLE
CONTENT
------------------got it---------------------------
<?php if ( ...
0
votes
1answer
144 views
Using wp_list_categories like the the_category (showing just current categories of a post)
fromi'm using wp_list_categories to get an unordered list with headlines (on single.php inside the post-loop):
<ul><?php wp_list_categories('title_li=0');?></ul>
the thing is: i ...
0
votes
1answer
113 views
How to retrieve text only from wp_content() not from wp_excerpt()?
I'm currently developing a website with WordPress 3.5 and I need to retrieve Post Text (Only text, not include images) at Archive Page. I can retrieve it with wp_excerpt() method without any problems. ...
0
votes
1answer
93 views
After 3.5.1. upgrade, posts appearing on Site yet *NOT* in WP admin!
Upgraded to newest WP version yesterday and with that many of my posts disappeared from admin. However, they do appear fine online. If you go to link below, all posts on Projects section of site were ...
0
votes
1answer
36 views
Overwrite URL on blog posts
I would like to overwrite my URL on single blog posts.
At the moment my posts are displaying as www.mydomain.co.uk/post-title, however I would like them to be as
www.mydomain.co.uk/blog/post-title ...
0
votes
1answer
51 views
post content includes and seo vs. duplicate content
Trying to find the answer here but can't seem to locate this specific scenario...
We have products that include multiple, defined resources - for example, each has 3 distinct user guides for ...
0
votes
1answer
28 views
Should new posts already have tags?
When creating a new post on one of my multi sites post tags have automatically been added. This happens to some users on specific sites only. Has anyone seen this before?
0
votes
1answer
70 views
Is it possible to have different header style blog titles in different categories?
For my category titled 'mindset' I would like to use the following style on my post header:
background: none repeat scroll 0 0 grey;
border-bottom: 5px solid #83990A;
However for my 'news' category ...
0
votes
1answer
31 views
Creating pages and getting their values from the database table
I need to make inquries from my new website. I want to know whether Wordpress is capable of this:
Say it I have such a table:
CREATE TABLE IF NOT EXISTS `mytable` (
`id` int(11) NOT NULL ...
0
votes
1answer
26 views
inserting a category into post
Can you tell me how can I insert a whole category into the specific post. for example: have 4 posts in a category "zanimljivosti" and I want to put that category to be shown inside another post not as ...
0
votes
1answer
39 views
Older entries link within a category page
I have set up a category called 'blog' and have all of my posts displaying from this category. I have selected to display 4 posts / page therefore there is a link at the bottom that says older ...
0
votes
1answer
63 views
Display the first post's comments of category in comments.php template
I want the display the comments from first post of the category only.
Example;
Category
- Post 1 (2 comments)
- Post 2 (1 comments)
- Post 3 (5 comments)
If I am reading the Post 2 or Post 3, I ...
0
votes
1answer
55 views
How do I display a full post, not just an excerpt?
I am a newbie, so apologies in advance if my terminology is off. I have purchased a theme (WP SmartStart) and I would like the posts in the blog to display fully, not just as excerpts. I read previous ...
0
votes
1answer
24 views
How do I restore my site?
I accidentally deleted all my pages and posts from my wordpress admin. I was trying to delete some dummy data that one of my plugins installed on the website and wham!, all my posts and pages were ...
0
votes
1answer
57 views
Show last post of employee in his profile page
I have built a wordpress theme in which I have listed employees of the organization via custom post type. And I am displaying each employee via custom post type.
The employees listed are authors in ...
0
votes
1answer
318 views
Facebook doesn't display the related thumbail for some posts
When I share some of my blog posts, Facebook doesn't display their right thumbail or anyn related image to the posts ... It just gives 3 unrelated thumbails to choose ...
For example , FB shows the ...
0
votes
1answer
49 views
Insert link to my thumbnail images
I am try to insert link to my thumbnail images, the link is hyperlink with post. When i put this code inside the loop then instead of showing the first image, first show the second image ...
0
votes
1answer
88 views
WP Query - duplicated posts once including tags in search results
I running WordPress on IIS & SQL server. As some of the plugins do not work correctly with DB ABSTRACTION I am using a lot of functions.php filters as so on.
To make my search results include ...
0
votes
1answer
32 views
How to make a list of posts displaying them 5 by 5 with a “next posts” link?
I have been googling for the past 2 hours and haven't been able to figure this out, mainly because I am missing the right terminology, in other words, I don't know what I want in "wordpress words".
...
0
votes
1answer
81 views
How can I hook into creating a new post and execute wp_die(), before the post is inserted into the database?
Info about wp_die from codex: Kill WordPress execution and display HTML message with error message. A call to this function complements the die() PHP function. The difference is that HTML will be ...
0
votes
1answer
111 views
Styling first post using Advanced Custom Fields
I'm working with a company's About page. I created a custom post type for "Employees", and am using the Advanced Custom Fields plugin to create simple meta boxes for name, title, image, and bio.
The ...
0
votes
1answer
34 views
Make division in post_query?
I am new to both PHP and WP so I am struggling with one thing:
I want to fetch all my post and then order it according to my meta-value "_mycounter" divided with the date in seconds from 1970 or what ...
0
votes
1answer
36 views
Category pages vs single post pages
For each of a few categories there is a "main" post which should be displayed at the top of the category list page. Should these pages (where both the "main" post and the list of the rest posts for a ...
0
votes
1answer
24 views
Columns in a “post”
I understand that all of wordpress is structured around certain key "entities". Some of which are,
Pages
Posts
Comments
That list is by no means exhaustive because I know wordpress has few other ...
0
votes
1answer
98 views
How to show category based post in home page?
Suppose I have 3 categories (cat 1 , cat 2 , cat 3) , and my blog home page shows 6 recent posts . I want to show 2 recent posts from every category.
How can I do it?
0
votes
1answer
34 views
Visual (non-HTML) display of post revisions
So you know when you click "show revisions" on a post and can choose to edit any of the recent drafts?
I have a client, non tech-savvy, who is frustrated by how the revision previews display as HTML ...
0
votes
1answer
205 views
How to redirect image attachment to its original post
I'm making a slider that is getting images from attachments in the post. I am trying to rewrite the url for the post so that if someone pastes the direct url to the attachment, it'll go the post ...
0
votes
1answer
66 views
Redirect posts to sub domain except pages
We have a WordPress site, which contains posts and pages. Now we moved posts into sub domain but we kept pages into root domain. Only Posts has .html extension and there is no difference in the URL ...
0
votes
1answer
477 views
Load posts into sidebar and paginate via ajax?
Is it possible to paginate, or load the next / previous posts in the sidebar without messing with the entire page pagination? Such as AJAX?
Right now I'm querying custom post type posts to load the ...
0
votes
1answer
330 views
previous_post_link() and next_post_link() with a custom post type?
I'm on single-work.php for a custom post type called work, inside the loop.
Trying to make two links to the previous and next post.
Using this code:
<?php previous_post_link(); ?>
and
...
0
votes
1answer
28 views
Display code if title of the custom post matches title of other post
I have two custom posts, one called "reviews" and another called "guides".
I want to display a custom field from the post reviews if the title of the two matches.
Something like this: (I am not good ...
0
votes
1answer
185 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
1answer
62 views
How do I display the next 3 posts in the sidebar?
I'm building a simple "company news/press release" site. We'd like to display the latest five post excerpts on the home page with the next three post titles (six through eight) and a single "Archives" ...
0
votes
1answer
349 views
Refresh problem post is duplicated when page is submitted after page reload
I have a form on my website, that creates a post from front end. So every time when I refresh a page I got this message first:
The page that you're looking for used information that you entered.
...
0
votes
1answer
235 views
Why my meta boxes won't show in front post page?
I see it everywhere: in single post, in category archives etc, but in front page post not.
I display the metaboxes in this way:
<?php if (get_post_meta($post->ID, 'test_1', true) != '' ) { ...
0
votes
1answer
53 views
2 tick boxes appearing below comments
In my site I have two tick boxes appearing above each other underneath the comments section.
I have tried disabling pingbacks etc.
How do I remove these?
example - ...
0
votes
1answer
70 views
get posts from Custom Post Type & Category
Ok, I've been frustrated about this one:
I've got a category page with the Title + Description of the title. Under it I would like to show all the (custom post type, 'blog') posts related with this ...
0
votes
1answer
67 views
Home page: using custom fields for posts and pages
in my home page I'd like to display some pages and posts title using the custom fields.
Unfortunately my code prints only posts title.
If there is a key "highlights" print the title.
Here my code:
...
0
votes
1answer
21 views
Last three posts not being put in order by date. How to fix this?
My company adds a quote of the day each day. The last three posts that I have put are not in order though. The first quote I posted 3 days ago is at the top the post I posted yesterday is under that, ...
0
votes
1answer
63 views
Wordpress sub-posts and permalinks
I'm thinking about one problem... There is a set of regular posts. Just posts in categories.
I need to add for some of them a sort of subposts, posts which will be related to parent-post.
This ...
0
votes
1answer
120 views
load more portfolio on page end reaching
i like to add an automatic load more link on the bottom of the page, so when a user reaches the end and starts scrolling the next recipes (in this case) will be loaded.
...
