Tag Info

Hot answers tagged

1

If you aren't familiar with web technologies, you have a long road ahead of you. That being said, if you have built an iOS app then you probably know something about programming and are willing to travel that road. The best place to get started would probably be the Wordpress Plugin Developers Handbook If you can map the wanted functionality into custom ...


1

I would modify your design a bit so you can leverage the data as well prevent logic mistakes that may ruin your stats. First I would store up and down votes as two separate meta values. The reason is that you can then display both if you desire, as well as calculate votes as a percentage of the whole. For example 45 up, 10 down, or 81% favor this question, ...


1

Since there are going to be more than one post (lesson) per user, your code would be more like this: <?php if ( is_user_logged_in() ) { $user_ID = get_current_user_id(); $post_ID = get_the_ID(); $viewed = get_user_meta( $user_ID, 'viewed_lesson_tracking', true); if(empty($viewed)){ $viewed = array(); } $viewed[] = $post_ID ...


1

There're few plugins to storage it on WordPress database. I recommend you save as users. I believe one of these plugins will help you: https://wordpress.org/plugins/wp-all-import/ https://wordpress.org/plugins/wp-ultimate-csv-importer/ To send emails, you might use an Email Marketing provider, like Mailchimp. In this case you can import all the users to ...


1

What you likely need is the function wp_insert_post(). In your backend (not the WordPress backend, just so we're clear), you'll need to do a minimal load of WordPress to allow wp_insert_post() to work. You can do this by define( 'SHORTINT', true ). Some additional reading on doing a minimal load of WordPress: Load minimum WordPress environment Ajax ...


1

Make sure you have declared the $wpdb variable global $wpdb;. Also calling $wpdb->query() will execute the query for you, so no need to do it again. I would also recommend using $wpdb->insert() as this escapes your data for you: global $wpdb; $wpdb->insert( $wpdb->prefix . 'fafa', array( 'titile' => trim( ...


1

The following code will properly store data in wp_fafa: $wpdb->insert( $wpdb->prefix . 'fafa', array( 'title' => trim($row->item(0)->nodeValue), 'liveprice' => trim($row->item(2)->nodeValue), 'changing' => trim($row->item(4)->nodeValue), 'lowest' => ...



Only top voted, non community-wiki answers of a minimum length are eligible