The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
53 views

Why aren't paragraphs breaking on this page?

This page is created using a recent posts shortcode included with my theme. It is not displaying paragraph breaks that I've added in the editor and I'd like it to. How can I get the shortcode to ...
0
votes
0answers
35 views

Code for recent posts widgets

I have been using this plugin for many years now BUT the only problem is that it does not show child categories, it only shows posts that are in parent categories, how can I fix this. MY CODE: /** ...
0
votes
1answer
39 views

Recent post in the middle of the content

My site has a static front page and a blog. I'm using the Foundation5 grid and I've split the content of the homepage onto three rows, like this, and I'm updating both the content and the html in the ...
0
votes
1answer
33 views

Small intro before latest blog posts

What I'm trying to achieve is quite simple (in my mind). On the homepage, my blog presents the list of latest posts and I'm ok with it. I just want to add an introduction (three lines of text) before ...
0
votes
1answer
21 views

Show recent published posts

I want to list recent published posts of my wp blog and exclude certain posts of some categories. The following code works fine, 10 recent posts are listed and posts in the listed categories are ...
0
votes
0answers
26 views

Recent posts show thumbnail

I'm learning wordpress theme development and using Underscores as my starter theme. How can I show either a small thumbnail of a image or featured image, from each post In my recent posts custom ...
0
votes
1answer
32 views

Author list based on recently active

My list of authors is now based on post count and I would like it to be based on recently active user. My idea was trying changing the orderby to post_date but it has no effect. Any suggestions to how ...
0
votes
1answer
41 views

Get x recent posts by author?

So I have ten authors on my site, and I want to designate a section where it shows the ten authors and their 5 latest posts in the form of the post title linking to the post. I tried using the ...
0
votes
1answer
37 views

Wordpress Recent post only showing title

I'm new in wordpress theme development. I want to display recent posts via recent post widget. but when I active the Recent posts widget in wordpress admin panel it only shows the title but not the ...
0
votes
0answers
252 views

Recent Posts Widget to display Custom Post types doesn't display content

I have created a few custom post types on my site (WP 4.0 / TwentyTen Child Theme) and I was hoping to create widgets to display them on the sidebar. The custom post types work well but the widget ...
0
votes
1answer
80 views

Autoblog posts in wpms(network) into main site including featured images

I've a scenario like this: Blog writers, write their content into their blog and whichever post that they'd like to be seen in the main site should include the category 'Featured' (they're ...
0
votes
2answers
198 views

Empty excerpt using wp_get_recent_posts

I have this simple shortcode to display the last posts with it's title and except: add_shortcode('latest3', function(){ $recent_posts = wp_get_recent_posts( array( ...
0
votes
1answer
181 views

Adding a badge to new blog post titles

I wish to add a small icon/badge left to my blog post titles those are new (maybe 5-7 days ago). I may preferably have a blinking gif image for this. Now, how to execute this? First I tried with this ...
0
votes
1answer
185 views

Problem with Front-Page.php loading recent posts

Hi I this weird problem where i have my custom front-page.php with set page (in Reading Settings) static page. What I want to have is a static page with welcoming message and later 1 recent posts ...
0
votes
0answers
18 views

Displaying four post types sharing one taxonomy

I was hoping somebody could help me. I've created a custom taxonomy 'members' that is shared by four post types - posts, pages, resources, and news. I've then added five terms using this 'members' ...
1
vote
4answers
215 views

Create static front-page with 3-5 recent posts

I am struggling with front/landing page customization for my custom designed theme. I have designed custom theme and pretty much coded it using the Underscore boilerplate. As I understands, the ...
0
votes
1answer
404 views

Paginate recent posts widget

I've created a clone of the core Recent Posts widget as suggested here Code for Recent Posts Widget, but how would I go about adding pagination to that widget? I intend on using auto-pagination for ...
-2
votes
2answers
34 views

Recent posts with comment count in “Sidebar” template [closed]

I tried this code, but it totally broke my site. I suppose it's because I'm doing something wrong in the WP_Query's sacred posts context in the sidebar template. Could some WP guru please correct this ...
0
votes
0answers
83 views

Unable to show recent custom post types in default recent posts widget

I have a custom post type "books" and there are already 'books' added. However, I am unable to modify WP_Query to change Recent Posts widget. I know that there is filter to modify WP_Query args: ...
0
votes
1answer
161 views

Show all posts of all categories but excluding a category on custom blog page with pagination of my theme

<h3>Recent Posts</h3> <?php // Display blog posts on any page @ http://m0n.co/l $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $temp = $wp_query; $wp_query= ...
-1
votes
1answer
62 views

Get Each user recent post in wordpress

I have a Multi Author Blog, I want to show Recent post of each user / author. Image has been attached for more convenient, see the Red selected area where author's recent post is showing.
0
votes
1answer
55 views

Have latest post and recent posts display differently

I have a situation where I want the latest post to display with a larger image and more text than the recent posts which would display thereafter. So the most recent post might show about 500 ...
0
votes
2answers
60 views

How to make slider show 4 recent news and news start from begining not from 4th

I am kinda new to wordpress and I wanted to know how to make my wordpress site to show recent 4 news in this slider and again all news below: class s_naujienos extends WP_Widget { function ...
0
votes
1answer
38 views

Showing recent post of category in page

Any ideas, how I should do this: Recent post (with comments) shown in page? I need fixed url example.com/question that shows the most recent post, style should be same as in normal one post? Can I ...
0
votes
4answers
951 views

How to exclude categories from recent posts, recent comments & category widgets?

I use the bellow function (thanks to @helgatheviking!) to exclude categories from the wordpress loop. It works very well - posts of selected categories are excluded from the loop on the main blog ...
0
votes
1answer
266 views

display recent posts with thumbnail within masonary

On a page-template, I need to display recent 10 posts. So I tried to use, wp_get_recent_posts, found here in the codex, which I think is an appropriate hook for the purpose.The rest of the code is ...
0
votes
1answer
1k views

How to get excerpt of the recent posts

Right now, i am using code below to show title and its link of recent posts from my custom post category, but for one of my category i want to show excerpt, how can i achieve that. CODE i am using to ...
0
votes
1answer
78 views

Show recent posts in single-post page

I'm trying to show recent custom posts in single-events.php I can make it work by using get_posts what I don't know how to do is exclude the post that is active so if I'm on 'Event 1' just now using ...
-1
votes
1answer
104 views

Custom text box containing post titles

I added two text boxes to my home page on a wordpress site and I need to display recent posts titles only. What line of code should i add to do that ? Here is the code I used to create the ...
0
votes
0answers
109 views

display recent posts title in a text box on home page

I've created two text boxes on my home page using z-edity short code and I want to display recent posts titles as a marquee text in the first link and some text also as marquee in the second box. ...
0
votes
1answer
44 views

Duplicate content with the same URL, google authorship

I have recently added google authorship to my wordpress blog. When I search for specific posts on my blog, they come up with the post with my google+ picture and byline. On the other hand, when I ...
0
votes
1answer
502 views

How to show 3 most recent/viewed posts in a special tiles on home page using wordpress?

I have these tile elements on the top of my homepage: <div class="tile1"> <div class="tile-textbox" style="color: #22284f;">Just Some Title</div> </div> ...
1
vote
1answer
709 views

What's the difference between “get_posts” and “wp_get_recent_posts” when used with “setup_postdata”?

This might be a completely "I'm still new to WP" type question, but I ran into some interesting output when using get_posts() and wp_get_recent_posts() in a custom function I wrote with ...
0
votes
3answers
3k views

How do I use wp_get_recent_posts?

I'm trying to display the title and excerpt of the most recent 8 posts on the sidebar. I'm getting a list where: All items link to the oldest post All titles are "id number of a post that should be ...
0
votes
1answer
53 views

Recent post on single page from specyfic category

i have problem. I use this code before comment form. <?php global $post; $args = array( 'posts_per_page' => 5, 'offset'=> 1, 'category' => 1 ); $myposts = get_posts( $args ); foreach ...
0
votes
1answer
64 views

Where to add offset

I want to use the offset function to skip the first post and i have this code inside which i need to put an offside=1 , but wherever i insert it, I receive the error...any idea where i can add it ...
0
votes
2answers
268 views

How to display posts on template

I've added a page template that is my new home page and I would like to be able simply list the last 5 blog entries. My home page currently looks like... <?php /** * This file controls the ...
0
votes
1answer
231 views

How to get most recent commented post above new submitted post in Wordpress?

I have this function: $ids = $wpdb->get_col("SELECT DISTINCT comment_post_ID FROM $wpdb->comments ORDER BY comment_date DESC LIMIT 0 , 30"); foreach ($ids as $id) { $post = &get_post( ...
0
votes
1answer
939 views

How to hide a post from 'Recent Posts' widget?

I'm trying to hide a post from the 'Recent Posts' widget in the sidebar. I know I can do this with the 'Special Recent Posts' plugin, but that plugin really uses up a lot of resources. I've got the ...
0
votes
3answers
403 views

shortcode for recent custom type post

I'm not a coder so I may have done some "coding" crimes, apologies. I've bought a theme who has shortcodes for last posts but not for last "custom post type". So I tried to create last "custom post ...
0
votes
0answers
29 views

Building Menus with the latest posts included

Im looking to build a menu system much like that off the huffington post or washington post, with links on one side and the latest articles or other dynamic content on another. Before i go crazy and ...
2
votes
2answers
1k views

Display all comments or recent comments per user on author page

I have author pages for each author and I want to see all of their comments (or all of their recent comments) if I click on their nickname. How can I do this? I tried the beneath code, but that does ...
0
votes
1answer
431 views

Manual excerpt length on recent posts slider

I need to change the character/word limit of manual excerpts which will be displayed on recent posts slider. I think it's 55 characters right now without counting spaces and punctuation marks. Am i ...
0
votes
0answers
371 views

Query recent posts by author

I'm fairly new to wordpress but trying to get recent posts by a specific author. The following code displays only most recent bog posts. I am using a custom field to get the author ID. EDIT by ...
4
votes
2answers
11k views

Code for Recent Posts Widget

I want to make changes to code of the Recent Posts widget – could anyone please tell me where that code is located? Thank you in advance!
0
votes
2answers
75 views

Adjust layout most recent post, taking pagination into account

I'm displaying two posts on my main page, and using post pagination to go through the older posts. My problem is I want to change the layout a bit of the most recent post. This sounds like a very ...
0
votes
1answer
103 views

List most recently added posts (with a twist)

At first I thought the task was trivial. I'd like to list the most recently added posts (say, 15 of them), but I am adding posts that are dated a few years back, yet I'd like them to show in the ...
1
vote
1answer
772 views

Recent Posts slider, using WP_Query(), loads duplicate sliders

I have written a small piece of code for Wordpress that will show the most recent top 4 posts in a slider (the Filament Group Responsive Carousel). It works, displaying the posts and sliding them etc, ...
0
votes
1answer
2k views

How to get date of post when using wp_get_recent_posts()?

I get the latest posts this way: $args = array( 'numberposts' => '2' ); $recent_posts = wp_get_recent_posts( $args ); Then I loop through them and get information about the post this way: ...
0
votes
3answers
674 views

Recent posts on homepage

I have made a page where you people can find al the teasers (teaser made with the read more tag) from my posts.( By clicking one of them you "open" the whole article, including photo's, ... . This is ...