Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
64 views

What is the easiest way to create a custom field archive?

So, here is the issue: I am using a plugin named User Submitted Posts, and it works great on its part. However, I still want to have that user content page the Twenty Twenty Four theme has by default, ...
Grond's user avatar
  • 1
0 votes
0 answers
90 views

Show the author only own types of publications. (JetEngine, Elementor)

I created a custom post called Locations using Elementor + JetEngine. I also created a User Profile Builder Dashboard with the help of this, where the user (client) can add a location. But the problem ...
user239691's user avatar
1 vote
1 answer
65 views

Accessing post's meta data based on user's click of a post

I am displaying a gallery of custom post types. When the user clicks a post, instead of redirecting to a single template, I want it to redirect to another page (too easy just change the link since all ...
DavidG's user avatar
  • 113
0 votes
0 answers
157 views

Trending Tags based on post views

I'm looking to display a list of the most trending tags on my wordpress blog - based on views that the posts within these tags have had, with a max tag count of around 10. I've looked into the ...
Jonathan's user avatar
  • 105
1 vote
1 answer
449 views

How do I "get the next 10 posts after post_id == x"?

I am building a mobile application that is pulling the json feed from a blog. I can easily query to get the latest 10 posts for example. But next, I want to be able to query the next 10. This presents ...
EGHDK's user avatar
  • 185
0 votes
1 answer
106 views

Ger posts from similar tags and categories

I want to retrieve 5 posts using any given post ID with following criteria: If the post with the ID has any tags, then select the posts having same tags. If the post does not have any tags, then ...
jay's user avatar
  • 151
1 vote
1 answer
3k views

How use %like% in sql statement wordpress

i use a like %text% statement in wordpress: SELECT * FROM location WHERE name LIKE "%on" OR name LIKE "%on%" i tried anything but it's not run: $wpdb->get_results($wpdb -> prepare("SELECT * ...
rocky's user avatar
  • 13
0 votes
3 answers
158 views

Wordpress ultra slow if I click on posts?

I have 5000 posts on my website, which I have uploaded from a CSV file. This all went well and the website is fast on the back-end and frankly on any other page. There is one exception: if I click on ...
user1627363's user avatar
0 votes
1 answer
2k views

Delete data from custom table when deleting a post

I want to delete post id form my custom table, when deleting a post. I have tried this way, nothing happened. Please help. add_action('delete_post', 'delete_data'); function delete_data($post_id) { ...
Shakil's user avatar
  • 103
0 votes
1 answer
2k views

Insert data in custom table during new post creation

I want to in insert data in my custom db table when creating a post. Suppose there are three categories (php, wordpress & jquery). When i create a post in wordpress, i want to insert post id and ...
Shakil's user avatar
  • 103
0 votes
1 answer
555 views

How to extract images of post and pages excluding header and logo image in wordpress?

I have tried this code to get all images from media library and i am sucessfully getting the source urls of all the images but now i want to exclude all the unwanted images like logo, header images ,...
user1145009's user avatar
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 (...
Genxer's user avatar
  • 195
1 vote
0 answers
657 views

How to order posts by meta_value and title

How do you order products in WooCommerce so that products are random, but at the same time featured products show first? Here is my code: $args = array( 'post_type' => 'product', '...
Anriëtte Myburgh's user avatar