billybob71a
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] wordpress functions not working after installing polylangOH I figured it out.
I have to add the parameter ‘lang’= ”, for a wildcard of all languages.
So it will be like this:
$args = array(
‘author’ => $the_current_user_id,
‘orderby’ => ‘post_date’,
‘order’ => ‘ASC’,
‘posts_per_page’ => 5,
‘lang’ = ”
);Forum: Developing with WordPress
In reply to: creating custom fieldsHi Angelch,
Yes, I used something similar to what you had in the end.
Thanks.
Peter
Forum: Fixing WordPress
In reply to: get the URLOH I think I found it.
It should be:
$the_url = $_SERVER[‘REQUEST_URI’];
Thanks.
Forum: Fixing WordPress
In reply to: get the URLHi,
Thanks for replying , but actually my question was how do I get the URL using PHP code or wordpress function?Peter
Forum: Developing with WordPress
In reply to: creating custom fieldsOk, within the code , I added:
$current_user = wp_get_current_user();
$temp_var = var_dump($current_user);result on the screen is:
object(WP_User)#338 (8) { [“data”]=> object(stdClass)#355 (10) { [“ID”]=> string(2) “50” [“user_login”]=> string(10) “testuser20”which is good.
However, how do I access the “ID” and “user_login” from what the dump shows me on the screen?
Forum: Developing with WordPress
In reply to: creating custom fieldsThanks,
I have placed the code into the theme folder.
For some reason , it is just pulling up the $user variable as string variable.
function extra_profile_fields( $user ) {
global $current_user;
$integer_value = strlen( $user );
$type_of_data = gettype( $user );
error_log(‘the user variable is ‘ . $type_of_data );
error_log(‘the integer value is ‘ . $integer_value);add_action(‘profile_personal_options’, ‘extra_profile_fields’);
error log shows:
[21-Sep-2018 17:41:46 UTC] the user variable is string
[21-Sep-2018 17:41:46 UTC] the integer value is 0
[21-Sep-2018 17:41:46 UTC] the type of data is stringOk, thanks. I think I working my way through the issue.
By the way, I can see the posts when I use a URL like:
Oh I figured it out.
I have to change the permalinks that the pages were created under as well.
Thanks.Hi,
No sorry. This is what I have been having issues with. I am not sure if I should be using a plugin like PolyLang along with the translations in order to use them.
Peter
But do I really need to use Loco Translate, I mean you have .po file in your languages directory already:
/wp-content/plugins/user-submitted-posts/languages/
Don’t I need to just set a “define(‘WPLANG” somewhere?
Hello Jeff,
I was thinking about working in your reCaptcha into the registration form.
I see that there is a “library/shortcode-login.php”.
Do you it would be possible to work in a snippet like the following that I see in your user-submitted-posts.php to display reCaptcha:
$usp_recaptcha_public = (isset($usp_options[‘recaptcha_public’])
Thanks.
Peter
Forum: Plugins
In reply to: [Photo Gallery by Supsystic] unable to installThank you, that worked!
Forum: Plugins
In reply to: [WPS Hide Login] not working with registration URLHello Nicolas,
Thank you for testing it out.
I was testing some things so I deactivated your plugin. You did not register when the plugin was enabled.
I have deleted your account so that you may register again.
The “wps-hide” plugin is activated now.
Please feel free to try to register again.
Thank you.
Peter
Ok, I think that works!
But if I change my registered email address, the link is not hyperlinked (not clickable).
The message is like this:
Howdy wp_visor_user,
You recently requested to have the email address on your account changed.
If this is correct, please click on the following link to change it:
https://www.visorsourcing.com/wp-admin/profile.php?newuseremail=4f3456d071625bf450a7490399f5857aYou can safely ignore and delete this email if you do not want to
take this action.This email has been sent to [email protected]
Regards,
All at Visor Sourcing
https://www.visorsourcing.com