The array tag has no wiki summary.
0
votes
0answers
16 views
Why is $_POST Empty in Profile Edit Admin?
This is a very odd problem - post data seems to be empty in the profile editing page of admin.
Here is my code: http://pastebin.com/3ejg8P99
What causes this? Is there some "safety" step I've missed ...
1
vote
1answer
31 views
How to save data of an input field to an array
I'm writing a plugin to edit my profile page.
How can I save data of an input field to the database and then display it?
This is my code. The first part is the display in HTML:
<form method ...
0
votes
0answers
18 views
How do I retrieve a value from a multi - dimensional array using get_post_meta? [duplicate]
I know that I need to use
get_post_meta(31, $custom_repeatable, true); The post_id is 31 and the meta_value is $custom_repeatable. I would like to display the value hamsters repeat one only
. My ...
-1
votes
1answer
42 views
How do I just display the part of the array that I want to? [closed]
I would like to take a stored array, from the meta_value $custom_repeatable and just display the line 'hamsters repeat one', but the following code doesn't display it how I'd like.
Here is the code:
...
-2
votes
1answer
28 views
echo is just displaying the word 'array', rather than the array
I have a post_id of 31 , & a meta_value of custom_repeatable . But when I echo the variable (like below), all is says is array when I use the shortcode. I'm not bothered with the ...
1
vote
1answer
27 views
Get specific custom field keys from a post and put into an array
I have the following code to look up the longitude and latitude based off of a custom field upon saving the post. My address fields (street_1, city and state) are separate. I have searched and thought ...
1
vote
1answer
29 views
Resort get_categories
I have a get_categories array
$args=array(
'orderby' => 'id',
'order' => 'ASC',
'taxonomy' => 'wpsc-variation',
'hierarchical' => 1,
'hide_empty' => 0
);
...
-1
votes
0answers
39 views
Two exact same queries returning different results
I figured it out. It was in the way I was creating the variable for terms. The working code is below. Where $VAR is a comma separated list of ids. The only problem is that this method also inserts ...
-1
votes
0answers
66 views
get checkbox values with jQuery [closed]
I have a checkbox with multidimensional array which I was using with php submiting. Now I'm rebuilding my code to use ajax.
<li class="formVariationParent">
<input checked="" ...
-2
votes
0answers
22 views
Best code practice to check if array has multiple [closed]
I'm planning out my first plugin on Wordpress and have a question relating to checking if a value is a multiple. - I hope that makes sense haha
Basically I want to feed into jquery some values and ...
0
votes
0answers
37 views
How do I retrieve an array from wp_postmeta with get_post_meta?
I have got an array stored in the wp_postmeta table. It is has a meta_key of custom_repeatable It has a post_id of 6. How do I retrieve this & echo it? I think I have to use the following, but ...
0
votes
1answer
38 views
My theme saves their custom post type's metadata as a serialized array, how to access the keys?
I've recently bought the WP Directory Portal theme from ThemeForest.
Since the theme doesn't do frontend posting of custom post types, I've resulted to using WP User Frontend Pro.
There's a problem ...
2
votes
1answer
41 views
How to store widget fields data as an array?
I am creating a widget, it needs to store about 10 IDs. Right now I'm using following field method to store each of the ID in a separate field. It stores data of each field in a separately in the ...
0
votes
1answer
26 views
update_user_meta duplicates entry
I have a very simple code in my themes footer
if (is_user_logged_in()) {
$user = wp_get_current_user();
$aka2 = get_user_meta($user->ID, 'last_visited_blogs', true);
$aka2[] = 'blog4';
...
0
votes
2answers
59 views
How to create a multidimensional array with multiple loops
I have this loop where I loop through every post of my CPT and fetch the title and the content of each post and put it into an array. That is no problem.
But as it happens I have created a repeatable ...