Tagged Questions
0
votes
2answers
23 views
Widget to show posts in the sidebar basing on its IDs
I am trying to create a widget that displays posts in the sidebar taking post IDs as input from the user.
The result of my code is that the widget displays just the first entered ID and ignores the ...
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 ...
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(); ...
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 ...
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 ...
1
vote
6answers
213 views
How can I hide the sidebar from a specific post?
I'd like to hide the sidebar on a specific post (not page). How can I do this?
For background, I've searched quite a bit both on Google and here. I'm finding lots of solutions for showing different ...
0
votes
1answer
481 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
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
3answers
106 views
Sidebar limiting to 10 posts?
I have the following code inside my single.php page:
UPDATED CODE
<?php if (have_posts()) : the_post();
$post_id = get_the_ID();
if ( is_single() ) {
$cats = get_the_category();
...
1
vote
2answers
45 views
Sidebar links for different pages
Hey all i am wondering what i need to add in order to have a different sidebar for a set page?
I created a category for the page (called PatientEdu):
And made sure the page was linked to the ...
0
votes
1answer
165 views
Getting post and attached image from subdomain
I Recently installed wordpress as subdomain on my main website. Now i have two installations:
www.example.com and www.example.com/store/. Now i want my Main domain to show recent posts from subdomain ...
0
votes
1answer
188 views
Conditionaly exclude post from certain category from homepage sidebar?
how to exclude posts from one category to not show on sidebar on homepage only when I explicitly dont want that particular post, in all other cases post will be displayed.
I had try with plugin "WP ...
0
votes
1answer
126 views
Post X of Y in single.php / sidebar.php
Is there a way of putting "Post X of Y" into my sidebar? I think I can only show it when it is a single blog post (something like checking if the content is_single) but I want to be able to see which ...
2
votes
1answer
754 views
How to show post(excerpt) from specific category on wp page?
I need this on 3 pages, all 3 from different categories, and then to show several post excerpts from all 3 categories in sidebar of home page.
0
votes
1answer
370 views
Show 10 latest posts only from users with contributors role
How to achive this in sidebar.List of 10 latest permalinks(post titles) from contributors ?
0
votes
2answers
502 views
Display most recent posts in category with Twenty Ten theme widget
I am fairly new to WordPress, and I would like to have a list of the most recent posts in a certain category appear in a right-hand panel (I can do this with all posts, but not specific categories)
I ...
1
vote
2answers
1k views
$post>ID displays wrong post ID
I've asked a question about listing all sub-pages before:
Listing all sub-pages?
But all the questions were wrong.
Anyways, I have now simpler question.
global $post;
echo $post>ID
Works ...
1
vote
3answers
93 views
Styling images coming from another blog
I had asked a question earlier, on getting post-thumbnails from another WP-site. There, the awesome Mike coded a SQL query whose results are then passes on to a PHP array. The piece of code from that ...
3
votes
2answers
2k views
Getting post-thumbnails from another WP site
I have two WordPress installations, one at http://inversekarma.in and the other at http://inversekarma.in/photos. The latter is a photoblog, and its theme uses the standard WP post thumbnails (EDIT: ...
2
votes
1answer
641 views
show posts names and links in the sidebar list as categories child
i'm using this plugin to show an exapandable/collapsible widget-menu in my sidebar.
http://wordpress.org/extend/plugins/folding-category-widget
it works very well!
the question, not directly ...
4
votes
1answer
908 views
Getting the Next and Previous Posts Titles in the Sidebar?
Let's assume that I have the following posts with the following titles:
PostA (is assigned to the 'category 1')
PostX (category 2)
PostB (category 1)
PostC (category 1)
PostD (category 1)
PostY ...

