Default URL for category dropdown select option

I found a solution! As I was looking for a fix I ran across this article: https://andrux.net/add-empty-option-to-wp_dropdown_categories/ This is very close to what I was looking for, so I tweaked it. The only thing I did to the form was remove the show_option_none=Select… The form code: <form action=”<?php bloginfo(‘url’); ?>” method=”get” id=”catform”> <?php $parent = … Read more

Contact form code not working. Need help!

Copied from my Answer for “An old plugin self-made stoped sending mail”: Many E-Mail-Hosters changed their rules to prevent spam. Often times, E-Mails that have one domain name in their “from”-Tag and come from a server with a different domain are rejected. So my guess is, maybe the emails are still sent, but not received. … Read more

get/show Last ID

to have the ID, you can try this hook e.g. add_action(“save_post”, function ($post_ID, $post, $update) { if ( !$update && class_exists(“Flamingo_Inbound_Message”) && (Flamingo_Inbound_Message::post_type === $post->post_type) ) { // here $post_ID is the ID of the new created inbound message } }, 10, 3);

Insert user register into my own user table instead of wp own user

I figured it out myself I needed $wpdb and a , after the db_name Here is the result. $user_id = $wpdb->INSERT( ‘wp_fisker’, array ( ‘fisker_fornavn’ => apply_filters(‘pre_user_first_name’, $fisker_fornavn), ‘fisker_efternavn’ => apply_filters(‘pre_user_last_name’, $fisker_efternavn), ‘password’ => apply_filters(‘pre_user_user_pass’, $password), ‘telefon’ => apply_filters(‘pre_user_telefon’, $telefon), ‘zip’ => apply_filters(‘pre_user_zip’, $zip), ‘by_navn’ => apply_filters(‘pre_user_by_navn’, $by_navn), ’email’ => apply_filters(‘pre_user_user_email’, $email) ) ); if( … Read more

How do i can data from my custom form to a custom table

This is the code to create the form, i have created the table already, it has 3 columns, name [varchar], description [varchar] and date [date]. i am missing the code to include that allows the from to upload the values in the fields to the table please. <form method = “post” action = “”> <h3>Add … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)