Add Embed.ly API objects to post_meta on update
Add Embed.ly API objects to post_meta on update
Add Embed.ly API objects to post_meta on update
Bulk update all posts from plugin settings screen
The problem is with your js. When you click on first video post. It adds video code to the iframe i.e modal. When you click on second video, it doesn’t add video code related to second post to iframe(modal). Confusing? Refresh your page and click on 2nd or 3rd video. It will show proper. Now … Read more
OK so was way simpler than I thought in the end and didn’t involve a query of query. The same can be achieved like this: /*GETING THE USERS FIRST PUBLISHED SUBSCRIPTION?? */ $useremail = $ticket[’email’]; $user = get_user_by( ’email’, $useremail ); $IDuser = $user->ID; $args = array( ‘posts_per_page’ => 1, ‘post_type’ => ‘subscription’, ‘author’ => … Read more
OK so was way simpler than I thought in the end and didn’t involve a lot, just was approaching it in completely the wrong way: The same can be achieved like this: /*GETING THE USERS FIRST PUBLISHED SUBSCRIPTION?? */ $useremail = $ticket[’email’]; $user = get_user_by( ’email’, $useremail ); $IDuser = $user->ID; $args = array( ‘posts_per_page’ … Read more
New WP_Query loop in admin causes problems
So I was able to figure this out myself with the help of a great friend and php developer. I apologize some of the functionality i.e. CUSTOM::slugify() is custom but if necessary you can review my Div Starter theme to learn more about it. add_action( ‘init’, ‘cc_rewrite_add_rewrites’ ); function cc_rewrite_add_rewrites() { $specialties = get_specialties(); //Fetches … Read more
Custom RSS Feeds & Post Meta Data
Well, it doesn’t work for a very god reason. <div class=”blog_entry”> <span class=”author”>Posted by –<a href=”#” class=”normaltip” title=”Posted By”> <?php the_author(); ?></a></span> <span class=”categories”>– Category –<?php __(“https://wordpress.stackexchange.com/questions/141754/%1$s”) ?></span> <span class=”date”>– <?php __(‘%3$s’) ?> –</span> <span class=”comments”><a href=”single_blog.html” class=”normaltip” title=”Comments”><?php comments_number( ‘no responses’, ‘one response’, ‘% responses’ ); ?></a></span> <span class=”tags”><?php __(‘%2$s’) ?></span> </div> This part … Read more
You should use an object cache, it will definitely speed up the get_post_meta queries as they will be cached when doing the initial WP_Query (get_posts). I recommend testing with APC cache, using the APC Object Cache Backend : https://wordpress.org/plugins/apc/ Just drop the file in your wp-content folder and make sure you have APC extension available.