publish_post conflicts with save_post
publish_post conflicts with save_post
publish_post conflicts with save_post
Try the “Responsive Lightbox” plugin and use the “Inline” option. For more info, visit the plugin homepage and scroll down to the “Sample Code” section. First sample is “inline contents”. I’ve used this to build a portfolio from a custom post type. It’s simple and works well so far.
change default post archive page link
You fire setPostViews twice in ad.php via PHP setPostViews($adID); via JS with your ajax function again. Remove one, and you should be fine.
Changing html lang depending on author
the best solution is to add filter in your functions.php : add_filter(‘the_content’,’show_only_thumbnails’,99); function show_only_thumbnails($content){ if(is_home() && is_front_page()){ //quote from : //http://wordpress.stackexchange.com/questions/218305/display-only-text-to-wordpress-loop-without-loosing-the-text-formatting/218314#218314 $content = preg_replace(‘/<iframe.*?>/’, “”, $content); // removes iframes return $content; } return $content; }
Please set hide_empty to true which will fetch only categories which is assigned to post. $term = get_queried_object(); $children = get_terms( ‘category’, array( ‘parent’ => $term->term_id, ‘hide_empty’ => true ) );
Link post permalinks to subdirectory /post
If you want to load PHP file through AJAX use the below code. function sendAJAX(){ $(‘#container’).load( “stuff.php”, // url { // json object of data to pass to the page stuff: “all your stuff goes in here…”, moreStuff: “even more stuff” }); console.log(‘sendAJAX’); }; Let me know, In case of any doubts.
Disable Post/Page comment emails for creators