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

post-meta

Home/ post-meta

can’t get url parameters working with metadata for searching posts

Question
I am trying to get a custom feild added as a search paramter url. my post metadata for this example is 'public_paywall' and want to register as it as a query var "access" This is the code I have tried to no avail: /////////////re
0
custom-field, meta-query, parameter, post-meta, search Benedict Harris 2 years 0 Answers 57 views

Post ID into plugin

Question
I have a small plugin to update the acf fields in a posts. In each post, there are many fields that need to be updated with the received data from the API. In the code below, I first demonstrate from one api I get the code I need, then using foreach I get the data for each post. Now I need to upd
0
get-posts, plugin-development, plugins, post-meta, posts Bavarius 2 years 0 Answers 67 views

Save a loop of single meta box data from selected dropdown lists

Question
The layout of my edit post page I have 193 countries in Afghanistan post and in every single post "passport". I want add post meta data for "Visa Status" for each country of the 193, and in Visa status I have 4 options. Passport =&gt
0
custom-post-types, loop, metabox, post-meta, save-post Sinan Raei 2 years 0 Answers 60 views

No more get_option(‘date_time’) in WordPress 5.5?

Question
The template I'm using outputs the date of a post using: echo get_the_date( get_option( 'date_time' ) ); I was wondering why this output is now (after upgrade to WP 5.5) not working anymore? A fast fix is using th
0
date-time, options, php, post-meta wittich 2 years 0 Answers 57 views

No more get_option(‘date_time’) in WordPress 5.5 using PHP 7.4?

Question
The template I'm using outputs the date of a post using: echo get_the_date( get_option( 'date_time' ) ); I was wondering why this output is now (after upgrade to WP 5.5 and PHP 7.4) not working anymore? A fast fix
0
date-time, options, php, post-meta wittich 2 years 0 Answers 51 views

Hide custom meta data if empty

Question
I have a custom field created for WooCommerce products. I am using the below code to create // ADD CUSTOM WOO DATA add_action('woocommerce_product_options_general_product_data', 'woocommerce_product_custom_fields'); // Save Fields add_action('woocommerce_process_product_m
0
custom-field, post-meta Southerndavis 2 years 0 Answers 45 views

Uploading an image provided by user on form submission into Custom Post Type meta fields

Question
I am really pulling my hair out trying to find a way to pass an image into a Custom Post Type's (CPT) meta field when the user submits the form. So that I can then echo it out for use later. The project is a simple plug-in, it creates a CPT, with a couple meta fields, it is then populated
0
custom-post-types, images, php, post-meta, uploads Jason Is My Name 2 years 0 Answers 43 views

Unable to gather Image URL from Custom Post Type’s; Custom Meta Field

Question
I have wrote a very basic plug-in, it creates a Custom Post Type (CPT) that has multiple custom meta fields. I cannot seem to echo out the Image URL. I have tried a heck of a lot of other similar posts solutions but they all seem to relate in some way back to Advanced Custom Fields (ACF) p
0
custom-field, custom-post-types, meta-query, plugin-development, post-meta Jason Is My Name 2 years 0 Answers 50 views

How to keep custom post type related information

Question
I have two custom post types "Product" and "News". I want to keep a description that describes each of these types and I want to display it under the custom post title inside a banner. Also the user should be able to change it from admin dashboard. That means when I go to products page, there is
0
custom-field, custom-post-types, post-meta xandar6 2 years 0 Answers 40 views

Create action running on trashed_post hook to modify post_meta value

Question
I have a custom post type that always do math operation to its post_meta and other custom post type post_meta. For example: post-type 1 = cpt_product_order post-type 1 post_meta = cpt_pm_product_order post-type 2 =
0
actions, custom-post-types, hooks, post-meta, trash Ivan Slaughter 2 years 0 Answers 45 views
1 2 … 26
  • 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

  • 404 error - Page not

    ...

  • How to update meta fields

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

  • 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.