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

Is it possible to show full posts in Grid layout?

Is it possible to show the full recent posts rather than excerpt on homepage in grid layout?
Swati
  • 23
  • 6
2
votes
1 answer

Individual width for li in PHP ul -for Wordpress

I'm creating a Wordpress template and need some advice. I'm using PHP inline ul to display post results from different categories in a home page. That works for me when I want all the posts displayed on the same size. However, I want some of the…
vaevictisd
  • 21
  • 1
2
votes
1 answer

Wordpress query to only include posts that have certain content

I would like this query to only show the posts if it contains and text that comes from geodir_special_offers echo 4 , 'post_type' => 'gd_arts',); $lastposts = get_posts( $args ); foreach…
2
votes
2 answers

Wordpress: Order posts by user meta

Is it possible to order custom type posts by user meta? In my custom type posts list, I am showing user name and user phone. I have user id as meta of my post and ordering works for that. However, I dont have user phone as post meta, but rather it…
Jamol
  • 3,768
  • 8
  • 45
  • 68
2
votes
1 answer

Advanced Custom Fields Order By Meta Key value

I have a simple Wordpress query that lists my custom post type results. Currently, they list in order of date the post was created. I need them to list in the order of a custom field I have named 'release_year' from most recent to oldest. I am…
lowercase
  • 1,198
  • 9
  • 34
  • 56
2
votes
2 answers

Visual composer custom query - excluding meta_key

I have a custom query that I would like some help converting to visual composer's custom query. Basically, I would like to exclude all posts from displaying in the post grid that have the meta_key: _is_featured_posts and its value as yes. //…
2
votes
1 answer

Get current active category from multi category page

I'm here with a little challenge. The context: I am working for a company where I am building a new website for them. It is being built in Wordpress, btw everthing is going ok. The website has a news and blog page with posts on there. BUT a in some…
Controvi
  • 487
  • 1
  • 6
  • 16
2
votes
1 answer

Custom category pagination Wordpress

I have a custom loop on a custom template page in WordPress that is showing posts from a particular category. This all works great and shows everything I need, however I need to add some pagination eventually. As this is a custom loop it seems that…
legoman
  • 137
  • 1
  • 14
2
votes
2 answers

Get all posts starting with an alphabet in wordpress

I'm trying to create directory listing in which at the top there will be links...from a-z some what like this: A B C D E ...............V W X Y Z When a user presses on A, all the posts with titles starting with A should come, whats the best…
esafwan
  • 17,311
  • 33
  • 107
  • 166
2
votes
1 answer

Better architecture than inheritance on Activities that implement posts

I have this following architecture for a few activities and a fragment that allow a user to post messages. The messages have a Parent-Child relationship where a Parent post (a feed) might have child posts (comments). I am wondering if this would be…
AndyRoid
  • 5,062
  • 8
  • 38
  • 73
2
votes
1 answer

Access trashed Wordpress posts on the front-end

I've got this script to list all the post titles with permalinks including posts that are in the trash, on the front-end:
    -1, 'offset' => 0, 'category' => $cat_id, 'post_status'…
User_FTW
  • 504
  • 1
  • 16
  • 44
2
votes
0 answers

wordpress loop broken using ACF

Im building a website with Wordpress and Advanced Custom Fields(ACF). In my loop, I want to check for a category and then get into the ACF rows. But somehow the loops seems broken. For clarity, i'm now only outputting the titles. The titles in my wp…
Luc
  • 1,765
  • 5
  • 24
  • 44
2
votes
0 answers

Can't embed my own notes (in a page that I own)

I got a professional page for my work with some public notes on it. I see the "Embed post" button and my notes are public, but when I try to embed the post, that doesn't works. Error message : This Facebook post is no longer available. It may have…
F2000
  • 380
  • 1
  • 3
  • 13
2
votes
3 answers

How to add category to all post by using sql query?

I have a thousand posts and all them don't have category. So, Do you know how to associate category with all posts by using sql query ? Thank you !
Adword Acc
  • 23
  • 2
  • 5
2
votes
1 answer

Get tweets of a user using API

I have the details for user XXXX1 $oauth_access_token = "XXXXX"; $oauth_access_token_secret = "XXXXX"; $consumer_key = "XXXXX"; $consumer_secret = "XXXXX"; I am getting the tweets of XXXXX1 by using curl with $url =…
user3580413