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
70 views
Echo number of all users (subscribers, contributors, authors, etc.) whom have posted at least once
Hopefully quite an easy question for you code-savvy ladies and gents today: how would one go about echoing the precise number of registered users on a WordPress blog whom have successfully published ...
2
votes
2answers
71 views
How to show video from specific category on sidebar?
I need to get video and content from recent posts in specific category called "Video" and show it on my sidebar.
The problem is when I need to have limited text content. so, when I use the_content(); ...
0
votes
2answers
35 views
How to setup different permlalinks for posts and pages?
I'd like to setup:
www.mydomain.com/a-page/
www.mydomain.com/blog/category_name/
www.mydomain.com/blog/category_name/post_name/
www.mydomain.com/custom_post/post_name/
How would I do it? Thanks in ...
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 ...
1
vote
1answer
91 views
How do I exclude the current post from listing in recent posts
I list my two most recent posts from a widget on the sidebar. When I'm viewing one of these posts from single.php, I want that post to be excluded from the list and instead show the next post in ...
0
votes
1answer
29 views
Pulling in a particular post into a single page based on the post id passed into the code
I currently have a page on a site that I am developing and that contains a loop which loops through 4 posts contained in a custom post type called Treatments. ...
0
votes
0answers
49 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
84 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) ...
5
votes
1answer
84 views
Display Random Author with Details in Sidebar
PHP newbie here, recently decided to have a stab at cobbling together a kooky little 'Random Author Spotlight' feature into my current WordPress theme. I'm almost done, but I've hit something of a ...
2
votes
1answer
37 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 ...
0
votes
1answer
43 views
Why can't I see my attachment page information for an image?
I'm following a course where the tutor uploads an image to his media library. He adds attachment information. He then creates a new post and includes the image. When he clicks through, he gets the ...
1
vote
1answer
76 views
how to hide specific post from google search
I have a wordpress blog set up on my site, example "blog.domain1.com". I have several categories and write posts under each category. I have one specific category that I don't want google search to ...
0
votes
2answers
57 views
If contributor has published 2 or more posts then show otherwise hide
If the contributor has already published two or more posts I show a maximum of 5 of them in the post-single.php using this code
<?php echo do_shortcode('[latestbyauthor show="5"]'); ?>
I have ...
0
votes
1answer
53 views
Display most recent post in full, excerpts of older posts
Running 3.5.1. Is there an easy way to display my most recent post in its entirety and only display excerpts for my older posts on my home page?
1
vote
2answers
30 views
apply filters only to specific post listing without check the url parameters
I have made a custom post type named as: slider, in my plugin class, I am adding a filter
which calls the method remove_row_action that unsets view links from actions
...
0
votes
2answers
44 views
wordpress remove views from action links in a custom post
I have created a custom post type, but I want to remove the View link from actions, in the listing of the custom post.
I have tried this snippet
add_filter( 'post_row_actions',array(&$this, ...
0
votes
1answer
50 views
Single.php loses it's formatting
I needed to use the category name as a class for the H1, and also needed to exclude category 2. So I botched together the PHP code below. It works fine except the post looses it's formatting. I know ...
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
63 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
2answers
26 views
Plotting posts on a graph
Here is what i want to do:
For a specific date i want the number of posts from a certain tag.
For example: on 14th March i have a certain number of posts tagged "jazz".
I want to plot that number on ...
0
votes
2answers
37 views
Tumblr importer
Is it possible to import tumblr post to wordpress WMS without automatic publication?
My wordpress site has a multi-account. And I'd like to be able to check post, modify if needed before online ...
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
2answers
45 views
How we exclude current post form related posts
When user open any post, then on the right side they can see related posts to that post. But currently in related posts my current open post also showing, how i can exclude that post which is ...
0
votes
2answers
41 views
Count post view when user open any post
I want when any user open the post it count the post view. Currently i am using my custom function which is
<?php setPostViews(get_the_ID()); ?>
But the problem is that when user refresh the ...
1
vote
0answers
53 views
Set static page/post from another blog on same network
I have a multisite project and have a small problem with static front page/post. In general i am looking for a way to choose a static page/post out of the whole network on my main blog. Now i'm not ...
0
votes
1answer
32 views
Authors can edit all posts, except when an owner is specified?
I'm trying to do as follows:
All users can edit all posts from other authors (sort of wiki)
Some posts have an "owner". When owner is specified only this user can edit the post.
Do you have any ...
0
votes
1answer
32 views
Which hooks are essential for post templates?
Im in the process of building a very custom theme and Im beginning to work on the post templates, but I dont know which hooks are essential for them.
So like, I've seen (but cant remember where)some ...
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
18 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
1answer
19 views
Help post permalink
How can I change the - to a + in the URLs, automatically?
http://website.com/post-name/
http://website.com/post+name/
0
votes
1answer
27 views
How can I determine where I want to edit in the backend (server)
My boss has a wordpress site and he wants me to give him the ability to add videos from a site called vzaar. I see the form, I see the main PHP file for editing posts. Unfortunately I can't track the ...
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 ...
1
vote
3answers
44 views
How to limit displayed posts on wordpress
How would I edit the following code, so that only 2 of the posts are echoed instead of 3
<?php
global $more; $more = false; # some wordpress wtf logic
...
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
1answer
28 views
Problem to insert links on some text in post
When i try to add a local link (toward my own pages) on some text in my post, the AJAX function run indefinitely and didn't find anything. I've opened my browser's console and i've saw the following ...
0
votes
0answers
14 views
Wordpress Blog reply [closed]
I recently added a Blog page to my wordpress website. I posted a first message in the blog. When I click "leave a reply" at the bottom of the blog page it directs me to the home page instead of ...
0
votes
1answer
43 views
Navigation link to specific user page
I asked this question and got a great reply - Associate Page with User - so I can now associate a post with a specific user as required.
What I want to do is include in the main site navigation a ...
0
votes
0answers
138 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
1answer
34 views
Query posts from current year
I don't quite get why this isn't working. I'm trying to use the following to only show posts from the current year on the front page:
<?php query_posts( "&year=$current_year&order=DESC"); ...
0
votes
2answers
30 views
Formatting error while publishing theblog from Microsoft Word
I am trying to publish a blog post into wordpress based website from Microsoft Word. Here is the sample text that I added in Microsoft which I published as well.
" Temporary Blog Post
I am ...
0
votes
1answer
289 views
Display all posts under child sub category in sidebar on post page?
I am trying to make a custom sidebar for my posts in certain categories. It will look something like this.
My category structure looks like this:
Parent 1
Child 1
Sub Child 1
Sub Child 2
Child ...
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
28 views
Have h2 tag not show up if there are no blog posts
On our current site we have different company profiles. Some companies have blog posts that display on their profile and some don't. Their is an h2 tag above posts that is in the page template then ...
-2
votes
1answer
28 views
How i can manage the favorite posts which user marked
My site has many post and when a user is logged into the site, (s)he can mark the post as there "favorite post". So basically what I need is:
How can a user mark a post as her/his "favorite post", ...
1
vote
1answer
41 views
Including new Javascript only after a comment is made
I am looking to call a new javascript function only after a new comment has been made by a user. Specifically, I want to include new javascript on the resulting page of the page reload after ...
0
votes
1answer
44 views
How to modify post content?
I still haven't figured this out yet.
Is this the right way? I tried $_POST['content'] = "nothing" and $_POST['content'] = 0 neither work for me. I'm using following way
function changeContent() {
...
0
votes
1answer
36 views
Adding a user's ID behind the <a> tag ref link address
Good day, everyone:
I want to make wordpress to add the user's id number behind the ref's link string, so that, for example
<div class="toolsbutton">
<a ...
0
votes
1answer
29 views
How to restore deleted post related with deleted users
I accidentally deleted post that related to certain users in wordpress because I deleted user.
How can I restore those posts?
Thank you!
0
votes
1answer
96 views
Adding a text link under the post title in the lists of posts
I made a lot of changes to my WP settings and now, when I approve and publish pending posts, authors have one hour to modify their articles.
After the hour has gone the edit link disappear and they ...


