I am wondering if something went wrong in WordPress itself (and I encountered a bug which should be passed on) or maybe I am doing something wrong.
]]>The link above is to an EC2 instance.
]]><div class=”form-group”>
<label for=”selectedPackage”>Selected Package</label>
<input type=”text” class=”form-control” id=”selectedPackage” value=”‘.the_title().'” placeholder=”Your Package” readonly />
</div>
I surf the internet but I couldn’t find anything helpful. Even in the plugin docs.
Thanks
]]>the Askimet plugin is not active, so I’m disreagarding that alert.
The file difference in Functions.php was only in line 2554:
original die(); modified: exit(1);
is this a hack? not sure if I should change this?
the other change was in wp-admin/includes/upgrade.php
starting in line 2122
original code:
if ( is_wp_error( $result ) ) {
die( $result->get_error_message() );
}
modified version:
if ( is_wp_error( $result ) ) {
echo $result->get_error_message();
exit(1);
}
]]><style>.first:first-letter{text-transform: uppercase;}</style>
<?php
if (is_user_logged_in() ) {
$user = wp_get_current_user();
echo 'Hi <span class="first">' . $user->display_name . '</span>!';
} else{
echo 'Hi Guest!';
}
?>
I am not getting any results with the styling. i.e First letter of $user->display_name will not be transformed with a Capital Letter at the start.
I will be needing to edit some WP function i.e. display_name() or wp_get_current_user(), Would that be correct? If so, could you provide me with the file_name.php to edit?
BTW, We are allowed to post up to 10 lines of code in the forums, correct? : )
Thank you in advance!
Cheers!
]]>Let me clarify this:
I need a tablepress table where each record is added automatically from WP, from some PHP wordpress files/functions.
Is it possible to do that ?
Many Thanks,
Ariel
https://www.ads-software.com/extend/plugins/tablepress/
]]>How can I use wordpress database operation functions? I mean, how can I use $wpdb, wp_create_user(); update_usermeta() in this PHP file?
which file should I include? wp-blog-header.php? or anything else?
]]>