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

meta-value

Home/ meta-value

How do I set default meta value by post type?

Question
I'm trying to set a meta variable depending on what custom post type is set but can't get my code to work. This is the function in the plugin that sets the metabox after the plugin has added it to the edit page: function nd_options_metabox_post_header_img() { // $post is a
0
custom-post-types, meta-value, post-type Rosbiffer 3 years 0 Answers 45 views

how can i retrieve multi select information form wordpress meta value

Question
wordpress stores data multi select data as by this format in its wp_postmeta table a:7:{s:4:"type";s:1:"2";s:6:"server";s:3:"536";s:4:"lang";i:159;s:7:"quality";i:4060;s:4:"link";s:112:"aHR0cDovL2NkbjEubW92aWUuYWYvbW92aWUvZGVjMjAxOC9KdXN0aWNlLUxlYWd1ZS0yMDE3LUZhcnNpLTEwODBwJTI
0
meta-value, php, post-meta Mohsen Amani 3 years 0 Answers 45 views

Order posts by more than one variable (meta_key and publish date AND time)

Question
At cascadeoc.org/results I have results sorted by a Custom Field, "event_date_results" which is the date the event happened (not the date the post was published). However, when there are multiple results from the same day, I'd like to further control post order by published
0
meta-value, order, wp-query user5849394 3 years 0 Answers 50 views

Multiple Select on Gutenberg Sidebar as metakey

Question
I want to show a multiple select element in the sidebar when editing a page in admin, where I can save the selected values in a metakey. Of course also load the selected values upon load of page-edit in admin. I manage to show the list, but I don't know how to save it i WP
0
block-editor, custom-field, meta-value, metabox, sidebar Raf A. 3 years 0 Answers 64 views

Get posts by meta value except one post [closed]

Question
I have a meta_key with name director in my posts and i tried to show all posts with some value like christian bale in director meta_key, i want to use this query in single.php and not showing Current post in new query Thanks for any help
0
custom-field, meta-query, meta-value, wp-query alam7o 3 years 0 Answers 48 views

How to break meta values into different items and avoid duplicates?

Question
I'm trying to build a filter for a custom post type page. The custom post type has a metabox that allows choosing multiple authors but those are another custom post. I need this to be kept as a separate custom post type (rather than users) because of other functions not relevant to the question.
0
custom-field, meta-value, post-meta Cynthia Lara 3 years 0 Answers 55 views

Query custom post type custom meta key

Question
I want to get all post with the value X looking in the meta_key field. After tha I want to loop trough all post and get the title. I got this so far. function get_events( ) { $recurrence_ids = get_post_custom_values( '_recurrence_id' ); $recurrence_id = $recurrence_
0
meta-value, posts, query user1551496 3 years 0 Answers 52 views

WordPress Basic: My website on google search takes meta tag description from the “first” blog post. Is there a way to add a default text?

Question
As shown in the image below the description text - Gay strongman Chris McNaughten's ultimate feat of strength doesn't derive from the WSM arena but from his tumultuous beginnings.... is the first lines of the first blog post on the site.
0
description, google-search, meta-value, wordpress.org Raj Arjit 3 years 0 Answers 64 views

WP_Query multiple value not working

Question
How to query for multiple meta key values with the same key i have this query but multiple value not working for me, Where is my code wrong? if( isset( $_POST['scheduled_scan'] ) && $_POST['scheduled_scan'] == 'on' ) $args['meta_query'][] = array( 'key'
0
meta-query, meta-value, wp-query Asadiy4n 3 years 0 Answers 63 views

Get meta fields with AJAX and add the fields back to loop in template file

Question
I have a CPT with some amount of meta fields in each post. I am trying to load the meta fields with AJAX and pass the fields back to the loop in a CPT taxonomy template. The thing is, that it loads meta fields only from the first post in a loop and only on the first page, if there is a pag
0
ajax, custom-field, meta-query, meta-value, post-meta Vasili 3 years 0 Answers 64 views
1 2 … 4
  • 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 echo the_excerpt without

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

  • How to update meta fields

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

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.