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
3
votes
2 answers

How to pull trending news from Facebook Graph API?

I would like to pull trending news from Facebook in JSON, in order to use it in other application, but I couldn't find a way to do this. I have…
green
  • 393
  • 1
  • 5
  • 18
3
votes
4 answers

Showing Wordpress posts on two pages

I have three pages on my site. Let's call them home, page2, and page3. My 'home' page is set as a static front page. My 'page2' is set up as the blog page. What I want is the following: I want page2 to display blog posts with a certain category…
Amit
  • 7,688
  • 17
  • 53
  • 68
3
votes
0 answers

How to create this recent posts snippet for a blogger template?

I have a blogspot blog, and I want to change the format of its post snippets in home page, similarly to the snippets in this blogspot website(i3 theme with snippets). This website's snippets are exactly same to the full view of its posts except…
Windy
  • 41
  • 3
3
votes
2 answers

wordpress display second three posts

I need to display: first three posts in first div from wordpress, second three posts in second div from wordpress and third three posts in third div from wordpress. How can I do this? div 1 --1st post --2nd tpost --3rd post div 2 …
User
  • 314
  • 2
  • 3
  • 15
3
votes
1 answer

Update a post without update post title

I want to update post data without update post title even if user change the post title. For this functionality I have write the following codes. But it's not working. My code is as follows : function update_post_without_update_title($post_id,$data)…
3
votes
1 answer

WordPress load more posts with ajax not working

I am trying to make a button which can load more posts with ajax, but I'm having a problem. this is my php code:
Dunder
  • 77
  • 1
  • 9
3
votes
1 answer

Adsense ads between a grid loop of posts in WordPress?

I'm having some issues trying to insert Google Adsense codes between posts. First, have a look at the image below: I have a grid of 12 posts on my homepage, each row containing 3 posts. How could I put an Adsense ad on the second post of the first…
Landowski
  • 27
  • 3
3
votes
1 answer

Redirect from edit.php to different page in wordpress backend

Trying to setup a redirect for Wordpress backend. I have used this code: function redirected_admin_pages(){ global $pagenow; if($pagenow == 'edit.php'){ wp_redirect('edit.php?post_status=publish&post_type=post'); exit; …
user1721230
  • 317
  • 1
  • 6
  • 19
3
votes
1 answer

get posts by id in wordpress

I want to get posts by id. Id's are in array. I am using this code but now working. $the_query = new WP_Query( array( 'post_type' => 'job_listing', 'post__in' => array( 311, 312 ) )); print_r($the_query); //this doesn't print any…
Riz
  • 185
  • 3
  • 7
  • 14
3
votes
2 answers

If first post, style differently — Wordpress

I need the first post that was ever posted to be styled differently. Is there a way that I can see if the post is first, and then change its contents? I currently have a div in all my posts. This needs to be replaced with different div. Apparently…
user1469270
3
votes
1 answer

Retrieve Facebook Page posts comments total count (July 2013 Breaking Changes)

Currently I am using following API call to retrieve Post Likes and Post Comments for Facebook Page (PageId). Here in below i am making only one API call and retrieving ALL posts and their comments total count. 1).…
3
votes
1 answer

Display Subcategories and post from a Parent Category

So I have this issue regarding the loop within wordpress. I have the following structure in my site: Parent Category 1 Child category 1 Child category 2 Parent Category 2 Child category 1 Child category 2 Post Cat2.1 Post Cat2.2 Post 1 Post…
jashez
  • 33
  • 5
3
votes
1 answer

Facebook Graph API Search posts in a language

I want to obtain the results for this query filtered in spanish. Is it possible? https://graph.facebook.com/search?q=Gasol&type=post There must have been some changes in the lasts weeks because in December I got the results in spanish by…
3
votes
2 answers

MySql: Selecting all posts with category id=2 and 3

I have the following database with 2 columns: posts id category id 1 2 2 1 1 3 3 3 3 2 4 5 I need a query that when extracts all post id's that are in category 2 AND 3 which means :…
3
votes
1 answer

Why aren't my custom post type posts showing up?

I created a custom post type - Press - using the following code in functions.php: // Press Custom Post Type // function press_custom_init() { $labels = array( 'name' => _x('Press', 'post type general name'), 'singular_name' =>…
Cynthia
  • 5,273
  • 13
  • 42
  • 71