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
1answer
85 views

Dynamically change post_parent in every page load?

What's the correct Wordpress action where I can hook to dynamically change the post_parent of a post? I understand that a post can't have multiple parents so that's the only way I can think of to ...
0
votes
3answers
471 views

How to highlight most recent posts in a list

I want to be able to highlight the most recent post in a list of recent posts. By highlight I mean bold or style slightly differently from the other posts. This is the code I use now: ...
0
votes
1answer
115 views

How do I get the Wordpress post to display the content instead of an image?

I am working on migrating a Wordpress site to a test server. I imported all of the content & settings, and verified that every setting is the same as the old site. However, I'm having a problem ...
0
votes
1answer
606 views

WP the_posts() on single-cars.php get category link

I have a custom post type called cars. There is a taxonomy brands. I have a template single-cars.php and I'd like to add a link to the brand page(The category). Assume I'm on the page of the post ...
2
votes
2answers
2k views

Update content of multiple pages/posts at once?

Is this possible? using shortcodes? Custom post type? Custom Fields? CSV upload? Unique content per page. Do not need to create new pages, Just update body of them. Seems like a tough one? Also can ...
2
votes
2answers
383 views

How do I allow users to follow a post and then allow admins to email all users who have followed that post?

I'm looking to build out the following functionality, but I'm having trouble finding any help on it: user follows a post > user's email is pulled into an admin page and associated with said post > ...
0
votes
1answer
177 views

Filter post before *editing*

I know there are a lot of hooks in WP for altering a posts content (and other fields) before the post is written to the DB upon saving; but what I am interested in doing is running my custom filter ...
0
votes
1answer
34 views

Is there a way to display others posts in my post?

Is there a way I can pull in the content from another post into my own post without writing code? What I mean is that I have created a post called, "Apple post". I also created a post called, ...
0
votes
3answers
2k views

Get all posts by post_author

I am creating a back-end dashboard where I need to show all the post assigned to current user by the wp admin. I assign user role to Author and while creating post (as a wp admin) just assign ...
3
votes
1answer
924 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
1answer
94 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
3answers
437 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
46 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 ...
1
vote
1answer
844 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
81 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. ...
6
votes
1answer
523 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 ...
5
votes
2answers
911 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
501 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
421 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
374 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 ...
1
vote
1answer
198 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
74 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
300 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
103 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
2answers
72 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
70 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
2answers
189 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
3answers
493 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
112 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
73 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
59 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
1answer
23 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
36 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 ...
1
vote
3answers
247 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
1answer
61 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
1answer
203 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
2answers
765 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
1answer
58 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 ...
1
vote
2answers
3k 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
508 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
51 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
50 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", ...
2
votes
1answer
83 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
338 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
216 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
59 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
440 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 ...
0
votes
2answers
83 views

Possible to add a statement to a core file?

I would like to add one line to a wp core file. Basically on the 'edit.php' page, just right above <?php include('./admin-footer.php'); I would like to add an php include statement... ...
0
votes
1answer
131 views

Archive template combined with post slider and regular posts

I am trying to find the best and easiest way of modifying my archive.php template to contain slider on top which slides the 4 first posts and the rest (6) will be displayed beneath as a regular posts. ...
0
votes
1answer
460 views

Custom My account page and custom page for editing posts

I have created WP theme for property company, with custom post types which are actually apartments so users can from one custom page enter all the informations and the custom post gets saved. I ...