Fix it with set
:syn on
Reference: spf13/PIV#15
Fix it with set
:syn on
Reference: spf13/PIV#15
$loop = new WP_Query( array( | |
'post_type' => 'campaign', | |
'posts_per_page' => -1, // It will return all posts. | |
)); | |
while ( $loop->have_posts() ) { | |
$loop->the_post(); | |
$post_id = get_the_ID(); | |
$post_title = get_the_title(); | |
} |
It does not work to set expandtab off if you just comment out "set expandtab" in .vimrc. Instead, set under it as follows:
set expandtab
set noexpandtab
git show bd61ad98 // Show detailed modification
In hook_form_alter(), there are 2 methods:
function MYMODULE_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'user_pass') {
$form['#submit'][] = 'reflesh_current_path';
}
}
function reflesh_current_path($form, &$form_state) {
$current_path = current_path();
$form_state['redirect'] = $current_path;
The solution is from the issue:
logintoboggan module allows to register & login with email. user_registrationpassword module allows to set password and emai validation both configuration. But it does NOT work for both modules together.
Solution: