Display multi-select box choices in a bullet list [closed]

From your comment below: This code displays the members selections but only as a comma separated list: <?php bp_member_profile_data( ‘field=Countries’ ); ?> // $countries_csl should contain something like ‘hufflepuff, hogwarts, heaven, hell’ $contries_csl = bp_get_member_profile_data( ‘field=Countries’ ); // convert the comma seperated list (csl) into an array by using explode( [delimiter], [string] ) $countries = … Read more

WordPressUser Submission Form

When you get those “headers already sent” messages, it is usually one of several things: You are echoing something when you shouldn’t be, which is any time before get_header on the front end. I can’t remember exactly where the window is on the backend. You are doing something that is triggering a warning or notice … Read more

Custom Form not generating URL

The problem is problably here: <form id=”oselector” method=”GET” action=”<?php the_permalink(); ?>”> Your code is not in the WordPress Loop. According to the Function Reference (emphasis added): the_permalink() – Displays the URL for the permalink to the post currently being processed in The Loop. This tag must be within The Loop, and is generally used to … Read more

Update user meta on custom wordpress form and redirect

To redirect to some other page, you can use wp_safe_redirect any time before you echo content to the browser, including HTTP headers, which, I think, answers your question. But I would just echo a message on the same page if it were me. Not really on topic, but there are a number of things about … Read more

Function to add class to element?

That plugin does not create a <form> tag itself. It uses wp_login_form to do that, and that function does not provide a way to add a class to the <form> tag. You can see that by looking at the widget method, which is what generates the front end content. I don’t see a way to … Read more