flamingblade
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Text changes styling when pasted to editorThenextweb to the rescue …
In brief, in the edit page, find the “Clear formatting” button. It is located between the paste and the special character button, on the second row of the TinyMCE editor.
Highlight the desired text, hit the button and formatting will be stripped from the next.
I might have found the solution…
First of all, I created a new array, in order to store all the cat_ids.
So: http://pastebin.com/c9PuR56zAfterwards, I create a loop using the variable i as my counter, putting the following code inside the loop…
global $post; $args = array( 'numberposts' => 5, 'category' => $test[i] ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post);Thank you wpcanyon, it works as it should be.
Forum: Fixing WordPress
In reply to: Page breaks after testing search pageI am sorry Krishna, I can’t. The website is running on a local server.
Forum: Fixing WordPress
In reply to: Cannot publish or edit any postHello again,
Based on your answer, I checked my theme, since activating/deactivating the plugins had no effect and I deleted a function which was responsible for changing the file name of an uploaded image.
This is the function, which was placed inside the functions.php file;
function make_filename_hash($filename) { $info = pathinfo($filename); $ext = empty($info['extension']) ? '' : '.' . $info['extension']; $name = basename($filename, $ext); return md5($name) . $ext; } add_filter('sanitize_file_name', 'make_filename_hash', 10); function change_attachment_name_to_hash($post_ID) { $file = get_attached_file($post_ID); $info = pathinfo($file); $name = trim( substr($info['basename'], 0, -(1 + strlen($info['extension'])) ) ); wp_update_post(array( 'ID' => $post_ID, 'post_name' => $name )); } add_action('add_attachment', 'change_attachment_name_to_hash');With the function removed, everything seems to be okay.
Thank you for your help 🙂