Register Now


By registering, you agree to the Terms of Service and Privacy Policy.

Login

Forget


Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Add question

Please type your username .

Please type your E-Mail .

Please choose an appropriate title for the question to answer it even easier .

Please choose the appropriate category so others can easily search your question.

Please choose suitable Keywords Ex : question , poll .

This question is a poll ? If you want to be doing a poll click here .

Browse

Anonymous asks

Do you need a video to description the problem better ?

Choose from here the video type .

Put here the video id : https://www.youtube.com/watch?v=sdUUx5FdySs EX : 'sdUUx5FdySs'.

Notified by e-mail at incoming answers.

By asking your question, you agree to the Terms of Service and Privacy Policy.


x

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
x
  • Login
  • Add Post
  • Badges
  • Contact Us
Ask a Question
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Login

Forget


Register Now

Thank you for registering with WPTricks

Create an account
  • Login
  • Add Post
  • Badges
  • Contact Us

wptricks

  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

advanced-custom-fields

Home/ advanced-custom-fields

Getting user data via ajax

Question
I am trying to list registered users on the frontend which have a role of 'member'. I have a lot of advanced custom fields for the users though and don't know how to get those fields. I installed the 'AFC to rest' plugin which gave me an endpoint which had all the advanced custom fields for the u
0
advanced-custom-fields, rest-api, user-meta, users, wp-user-query user8463989 3 years 0 Answers 69 views

Manage data of different posts in one settings page (ACF field)

Question
I have a post type for cars. Suppose there are (about 500) cars in 500 different WordPress posts. Is there a way to update the price field of all cars in a settings page every day? And you do not need to edit individual posts to update prices.
0
advanced-custom-fields omid chahardoli 3 years 0 Answers 63 views

How to count the number of ACF rows that have values?

Question
I'm trying to count the number of acf rows that are storing values. The field is a repeater field and all rows are standard text fields. They are available on as a user meta field. Some users won't use all of these rows, and may only have 1 or 2 rows with values in them. So I
0
advanced-custom-fields dylzee 3 years 0 Answers 59 views

How to get custom fields in a post when published

Question
add_action( 'publish_post', 'sm12_publish_post' ); add_action( 'save_post', 'sm12_publish_post', 20 ); //After save meta value function sm12_publish_post( $postid ){ /** some checks */ if( "publish" != get_post_status( $postid ) ) return; $po
0
advanced-custom-fields, rest-api Paul John Pulumbarit 3 years 0 Answers 53 views

Add repeater field data to only selected post

Question
I have a wp_query with the while loop, I added a form for each post when I submit the form data it submits to other posts as well instead of submitting to the current selected post. <?php $query = new WP_Query( array( 'post_type' => array('artist', 'musicbrainz'),
0
advanced-custom-fields, custom-post-types, loop, wp-query Waleedviews 3 years 0 Answers 54 views

WP_Query ordering numbers as letters

Question
I have some meta_fields in user profile created with ACF plugin. I am trying to run a query to get users with the following criteria: User must have meta_field jogador_profissional == true List of users must be ordered by meta_fields quantidade_corretas (A
0
advanced-custom-fields, order, plugin-development, plugins, wp-query joann2555 3 years 0 Answers 57 views

User avatar-ACF fields

Question
I'm running wp multisite and using ACF custom field (user edit) for my local avatar, in my functions.php i added : add_action('get_avatar', 'tsm_acf_profile_avatar', 10, 3); function tsm_acf_profile_avatar( $avatar, $id_or_email, $size, $default, $alt ) { $user = ''; // Get user
0
advanced-custom-fields, avatar, plugin-development, user-meta, wpdb MR.Don't know 3 years 0 Answers 61 views

ACF Releationship meta_query query

Question
I have a relationship field displayed on certain posts and I want to populate it with articles only from a certain author ID. I also want to run a meta_query to check an array of IDs, and if this array finds an ID matching the author ID, to include the articles associated with it:
0
advanced-custom-fields, meta-query Phill 3 years 0 Answers 50 views

Transitioning Laravel App into WordPress (Portfolio Website)

Question
I'm re-creating my website in WordPress since I can't afford to provide the financial upkeep for my Laravel Portfolio website. In my Laravel application, I have an easy way of creating a new project (an object) and adding it to the database. Afterwards, I can create a page where all of the
0
advanced-custom-fields Steve 3 years 0 Answers 38 views

ACF unable to use user field

Question
I am totally new to wordpress and acf and I'm trying to use a user field in a post to show the author of the post. I tried to programatically add the post author id as a meta attribute in the wp_postmeta table like this: update_field('video_author', get_current_user_id(), $post_id)
0
advanced-custom-fields, customization Nikolay Naydenov 3 years 0 Answers 46 views
1 2 … 33
  • Recent
  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means that your website is unable to connect to ...

    May 30, 2021
  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY FOR $29 Onitir is a Modern & ...

    September 18, 2020
  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

    March 19, 2020
  • Tabula – Art, Music & Language School

    Tabula - Art, Music &

    Tabula – Art & Language School WordPress Theme Tabula is a Multi-Purpose WordPress Theme for all kinds of ...

    March 19, 2020
  • Mega Posts Display for Elementor – Premium WordPress Plugin

    Mega Posts Display for Elementor

    Welcome to Mega Posts Display for Elementor. With this awesome plugin for Elementor you can create a posts layout ...

    March 19, 2020
  • Home
  • Ask Question
  • Themes
  • Plugins
  • Tutorials
  • Books

Recent

  • How to Fix the Error

    If you get an error message “Error Establishing Database Connection,” this means ...

  • Onitir – IT Solutions WordPress theme

    Onitir - IT Solutions WordPress

    LIVE PREVIEWBUY ...

  • WhatsApp Chat – WordPress WhatsApp Chat plugin

    WhatsApp Chat - WordPress WhatsApp

Popular Questions

  • How to update meta fields

    I have an app written in Delphi and Indy components for Windows ...

  • 404 error - Page not

    ...

  • How to echo the_excerpt without

    In the code snippet below, I trying to get the_excerpt to be ...

Copyright 2019 WPTricks - WordPress Tips, Tricks and Hacks | Privacy | Terms

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.