Tag Info

New answers tagged

0

I solved it using the following WordPress Plugin, which has plenty of options to customize: https://wordpress.org/plugins/jquery-collapse-o-matic/


0

This is what I suggest get your RSS feed for site A http://codex.wordpress.org/WordPress_Feeds Install this plugin to Site B https://wordpress.org/plugins/rss-post-importer/ It has the option to grab the post and save as draft. As for email you might need to add some code to send an email out when a new post is added. function SendOutEmail($to, ...


0

Your code won't work in a themes functions file unless it includes a hook. Try something like: add_action( 'loop_start', 'your_function' ); function your_function() { if ( is_user_logged_in() ) { echo '<li id="text-2" class="hide">'; } else { echo '<li id="text-2">'; }}


0

Your .htaccess is not readable (like the error noticed). So make your .htaccess readable using permission 644. Source Now check again, perhaps now your stylesheet will be loaded? If not, check if the stylesheet file is readable. May this not be the cause, check the owner of the files.


0

Overriding the default page breaking - with external content parts The page breaking takes place in the WP_Query::setup_postdata() method, when we call the_post() in the loop. The page parts are stored in the global $pages array and fetched with get_the_content() function. This happens all before the the_content filter is applied to the content. We can ...


0

Found a solution which is working. Splitting the array like above just gives you the plain text so shortcodes wont work. this works: global $post; $content = get_extended( $post->post_content ); //get the_content $excerpt = $content['main']; //get the teaser part before more tag $main_content = apply_filters('the_content', $content['extended']); //get ...


-2

Hello this often happen due to js: for this i have solutions that. please open your wp-config.php from root. and add below code on it. define(‘SCRIPT_DEBUG’, true);


0

There might be two reasons for your problem You are using <!--more--> tag inside your content . If so then remove it. While querying post you are using the_excerpt method , if so then change it to the_content .


0

You can try doing this: $string = "Some text before the link http://www.youtube.com/?123 some text after the link"; preg_match_all('@(https?://www\.?youtube.com/.[^\s.,"\']+)@i', $string, $matches); var_dump($matches); In your case would be something similar to this: preg_match_all('@(https?://www\.?youtube.com/.[^\s.,"\']+)@i', $post->post_content, ...



Top 50 recent answers are included