Questions tagged [posts]

Blogging and other social media activities usually provide mechanisms allowing users to provide content of their own. One such unit is usually referred to as a post.

Blogging and other social media activities usually provide mechanisms allowing users to provide content of their own. One such unit is usually referred to as a post.

973 questions
19
votes
6 answers

How to get post author name in WordPress?

In WordPress I need to fetch name of author who created post using author_id. How can I find author_name ?
Rakhi Prajapati
  • 880
  • 1
  • 12
  • 24
14
votes
2 answers

get_posts no older than X days - Wordpress

In my Wordpress site, I use this get_posts code: get_posts( array ( 'numberposts' => 5, 'orderby'=>'comment_count', 'order'=>'DESC', 'post_type' => array ( 'post' ) ) How do I filter…
Henrik Petterson
  • 6,862
  • 20
  • 71
  • 155
14
votes
2 answers

SQL query to extract all WordPress posts with categories

I need to extract all posts from my WordPress DB along with the associated categories and not sure how to write this query. I've taken a couple of stabs at it already with no joy and would appreciate the help? EDIT: Here's what I have tried…
SixfootJames
  • 1,841
  • 5
  • 26
  • 42
12
votes
2 answers

How can I display posts from the other sites in a WordPress multisite setup?

I have a small network of sites setup with WordPress 3.0's multisite feature. I would like to create another site which pulls certain posts from the various other sites to display. This new 'hub' site would seem like its own separate site to the…
JGDev
  • 261
  • 1
  • 4
  • 8
8
votes
2 answers

What is the wp_postmeta table

From my understanding, the wp_postmeta extends the schema for wp_post. So basically the standard fields/structure for a post will be found in wp_posts, and if any post(s) needed their own set of fields/attributes etc, they would be defined in…
dave
  • 14,991
  • 26
  • 76
  • 110
8
votes
2 answers

how do i get only 1 post from each category in wordpress

i have a category named news and many subcategories inside it. What i wanna do is to get only 1 posts(newest) from each of those sub categories(including category title, post title, attachment image). Is there any suggestions friends??
sonill
  • 548
  • 4
  • 10
  • 21
8
votes
6 answers

Wordpress Loop posts in Bootstrap 3 grid layout

I am using Bootstrap 3 within Wordpess and have an issue getting my archive posts to display across the page in a grid format. My wordpress loop code is... 'artist', 'post_status' =>…
lowercase
  • 1,198
  • 9
  • 34
  • 56
8
votes
2 answers

posts in group feed have unavailable content

I am an admin of a private group in facebook and I would like to use facebook API to scrap all group posts. I used graph api explorer to generate an access token with read_stream, friends_group and user_groups permissions. When I access the group…
sergiofbsilva
  • 1,606
  • 15
  • 20
8
votes
3 answers

Facebook page's posts feed

Does anyone know how to fetch a facebook page's rss-feed nowadays? When I log in as a page and go to http://www.facebook.com/feeds/notifications.php?id=xx&viewer=xx&key=xx&format=rss20, I get an empty feed. Is there a corresponding "page" feed that…
Kalle Stropp
  • 103
  • 1
  • 1
  • 4
7
votes
4 answers

Wordpress how to prevent duplicate post by checking if post title exist before running "wp_insert_post"?

I have a wordpress site that connects to a soap server. The problem is every time I run the script the wp_insert_post is using the same result again. I would like to check if existing post_title matches the value from $title then if they match,…
Jay Bryan Cañas
  • 225
  • 2
  • 4
  • 10
7
votes
2 answers

Is it possible to get all Linkedin Profile Posts with Linkedin Api

I am trying to use linkedin API for showing the feeds of my profile what i have posted from the day first. posts include media, images, video etc. I would like to know is there any Api available for that where i can pass some parameter and get all…
Wahab Ahmed
  • 159
  • 1
  • 1
  • 11
7
votes
2 answers

WordPress: How to filter posts by category using $wp_query?

I built a custom theme on WordPress with a static front page and no page set in Settings > Reading Settings > Front page displays as a posts page. I'd like to display posts, however, based on their categories throughout the site on different static…
lurning too koad
  • 2,698
  • 1
  • 17
  • 47
7
votes
4 answers

How to change custom post type featured image metabox title and text labels?

I registered a custom post type name of Banks. Could i change this post types post-thumbnails meta box title and text value ? Is that possible ?
Fatih Toprak
  • 1,097
  • 1
  • 19
  • 48
7
votes
4 answers

Wordpress Display All Posts

THis may be really easy but i have searched and search and cant find anything. What is the default blog page? I am trying to find the page that will display excerpts of all my blog posts regardless of category or tags. I know that I can do…
user982853
  • 2,470
  • 14
  • 55
  • 82
7
votes
2 answers

show only posts created in last week

I want to be able to show posts and have them sorted by a couple criteria, first by the amount of votes they have on them and second by the date at which they were created. I don't want posts that are more than a week old being displayed so only…
Michael Peralta
  • 293
  • 5
  • 18
1
2 3
64 65