Matthew Pollard
Forum Replies Created
-
Thanks for the support Nick, I cleared my cache & it seems to be working now!
Any suggestions please, anyone?
I have done a
var_dump
on$key_2_value
, & it is empty. The meta field is definitely calledcustom_select
. Does anyone know why this could be the case in events-list.php? thank-you. Confused with this.I’m not sure how to put get_post_meta into this array, so that it is in the loop & has posts to query against. Please help someone, I would really appreciate it.
I put the code in events-list-grouped and it worked. Now need to css it!
Forum: Fixing WordPress
In reply to: How to echo value of a meta select box to the browserThank-you justingreerbbi . I’ve solved it now:
$this_post_id = get_the_ID(); $key_2_value = get_post_meta( $this_post_id, 'custom_select', true ); if( ! empty( $key_2_value )) { echo $key_2_value; } ?>
I was using
custom_meta_box
which refers to the meta box. I should usecustom_select
which refers to the select field. Silly meThank-you for the support!
Hi,
I didn’t find another plugin. I have used this one, without partial payments.
I did what you suggested and it works. I just need to customize my code further now to match my design more.
Then I just need to find what the alternative page for single events is, & do the same for that.
Thank-you.
Can anyone suggest anything that might help please? I would really appreciate it.
Thanks for the reply.
I understand that the parent with be overwritten when I update the genesis theme. So I have put it into the child theme folder.
Further info:
– I’m using genesis for this site.
– I have tried using category-single.php and categories-list.php, neither of them worked.
– If I select ‘override to formats’ to yes, then it will display the placeholders I have put into the settings area. It just doesn’t work when I create a template of my own, which I need to do to have the layout I want.Thanks!
Thank-you. Your plugin is excellent by the way!
Forum: Fixing WordPress
In reply to: How to hide a page from the all pages list in dashboardThank-you. I didn’t really want to use another plugin for my site. I used this :
add_filter( 'parse_query', 'exclude_pages_from_admin' ); function exclude_pages_from_admin($query) { global $pagenow,$post_type; if (is_admin() && $pagenow=='edit.php' && $post_type =='page') { $query->query_vars['post__not_in'] = array('28'); } }
I’ve just realized that this question is not worded very well, and cannot edit this post as it’s ‘too old’ . I have marked it as resolved and posted this question again!
Thanks!
Forum: Fixing WordPress
In reply to: Have I used is_email() correctly for this email field?is_email()
is OK.esc_attr
should be used instead ofsanitize_email