All Questions
21 questions
1
vote
1
answer
146
views
How to check if the post exists in any of the categories?
What I am doing is, I have to check if the post exists in any of the categories or not.
I have tried below two codes but it's not working for me.
This is the first code
foreach ($scats as $key => $...
0
votes
1
answer
77
views
Can i have limit posts on a specific category and automatically remove older ones?
i need to limit the number of posts on a specific category and if a new post is created and placed this category, but the number of maximum posts is reached, then the older one automatically been ...
0
votes
0
answers
194
views
Adding custom post category to categories widget
I'm using a plugin called The Events Calendar, which is creating a custom post type called tribe_events. It also lets me assign categories and add the posts to the main loop. Now I'm trying to get ...
0
votes
1
answer
991
views
automatically set random featured image by category in wordpress on post
Basically I want to automatically set an image randomly from a selection of about 3 or 4 images in my Media Library when someone posts a blog from a particular category.
I've got this so far but it ...
1
vote
0
answers
12
views
Display by Category in Admin
I run a website that has different online courses. Each course is a post. Each category is a state in which the course is approved. The states change every few months. I am given a document that lists ...
0
votes
1
answer
370
views
check uncategorized category by default
I would like to check the category 'uncategorized' by default when user creates a new post. Any idea how to go about it?
The default setting is 'Uncategorized' in Settings > Writing
However, it is ...
-3
votes
1
answer
1k
views
hide particular category post from front page only [closed]
i have setup a new wordpress blog and have few categories one is called news and it updates too frequently and less important so I want news category posts to be excluded from my home page only and if ...
0
votes
1
answer
854
views
Automatically set posts to NoIndex depending on category?
I'd like all new posts with a specific category to automatically have NoIndex applied.
There are various plugins - e.g. Wordpress SEO - which make it easier to manually select posts for NoIndex. But ...
1
vote
1
answer
136
views
Solutions to repost categories into multisite blogs?
I have done a search on this topic but was unable to find a solution to this specific question involving wordpress multisite.
I currently have a wordpress network where domain.com is our main site ...
0
votes
1
answer
49
views
Find And Add Category to Posts
My WordPress site is a mess. Previously, it had 80+ categories, with 1-2 sub-categories.
After creating blueprint for this site (I'm restructuring the site completely), I have new 6 categories and ...
0
votes
1
answer
55
views
Retrieve post thumbnails
I am trying to build a wordpress blog from scratch. I am looking to retrieve all the articles from a specific category. I then want to also include the SQUARE thumbnail(not a stretched version, a ...
0
votes
2
answers
50
views
How to add character to content of post?
In per posts, there are "oo/x/".
How to add "0" before "x" if length(x) < 10 ?
Examples:
x=12345678 ; length(x) = 8, so add "00" before x ===> x=0012345678
x=1234567 ; length(x) = 7, so add "...
0
votes
1
answer
123
views
single.php fires more than once after clicking on any post to view with different post id each time
I am now experiencing a wired problem with my wordpress installation. I was surprised when I saw post view counter of another post also increased including the the post on which I clicked to try and ...
1
vote
1
answer
1k
views
How can i list random post from multiple category?
I have an author page, and I want to list posts from current author's categories.
e.g. I'm viewing John's page, and John wrote in Sport, Tech, News, Computer categories.
Then my code list from this (...
0
votes
1
answer
78
views
Twitter List Tweets and Delicious Links as Posts
I'm trying to integrate Tweets from a Twitter list as individual posts categorized as "Twitter," and trying to do the same thing from a Delicious account.
I've found several plugins that will add ...
1
vote
1
answer
184
views
Calendar Solution: Handling upcoming Dates with Posts?
I'm not sure I'm allowed to ask a question like this on this forum, however I'll try. My question is not yet about a technical problem but how my complete theme-architecture might be build to fit my ...
0
votes
3
answers
4k
views
How to get Recent Post From Each Category with Thumbnail?
For Example,Now I have 3 Categories Like Food,Transport,Technology.Under These Categories I have Many Posts.Now I Want To Show the Latest Post From Each Category.{How to get Recent Post From Each ...
0
votes
2
answers
749
views
Recent posts per category loop?
I need a loop/plugin/widget to display latest posts from the category the user is browsing and at the same time if he visits the home page, it should show posts from all categories (not a specific one)...
2
votes
1
answer
6k
views
Plugin for changing a post's category based on it's post date?
Is there a plugin for Wordpress that will change a post's category based on how long that post has existed?
I have seen other Wordpress plugins that use a library called "simple pie" to manage a wp-...
2
votes
1
answer
2k
views
plugin for wp_list_categories with posts
Is there a parameter that can be passed to wp_list_categories, to get a certain number of posts from each category? Or a plugin that does something like that? A similar question was in the Wordpress ...
1
vote
1
answer
119
views
Any built-in function to associate a post to category through a plugin?
I have a post ID and I'm just trying to find a function ( I was thinking of something similar to wp_update_post() ) where I can just pass a post ID and maybe a category ID or slug and have it ...