The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
4k views

Issue with enabling formatting in excerpts in Wordpress

This is what I added in my theme's functions.php file to enable formatting for excerpts in Wordpress (source of the tip): remove_filter('get_the_excerpt', 'wp_trim_excerpt'); ...
0
votes
1answer
115 views

Add HTML to Page Content

I'm accessing a page content from outside WordPress, in a different webpage. Everything runs fine, I'm using this: require("wp-load.php"); $page_id = 300; $data = get_page($page_id); echo ...
0
votes
1answer
559 views

Graphics and Formatting Not Loading in WordPress on IIS

We have IIS 7.5 and we've installed WordPress (v3.3.1) through the Microsoft Web Platform installer (http://www.microsoft.com/web/wordpress). All works fine when we load WP locally (e.g. ...
1
vote
2answers
841 views

PHP library that can merge stylesheet with inline style [closed]

I am working with html document generated from Micrsoft Word 2007/2010. Besides generating incredibly dirty html, word also has the tendency of using both block and inline style. I am looking for a ...
1
vote
1answer
2k views

Stop auto formatting in shortcodes

Is there a way I can stop Wordpress auto formatting everything I enter inside a shortcode tag? A the moment I want to include a h2, a paragraph and another shortcode, but everytime I do Wordpress ...
0
votes
1answer
642 views

Lost formatting after saving

I make basic formatting to the text in visual editor. When saving, everything got lost, formatting, spaces, paragraph.... everything got inline... I will go crazy !... why it's doing that ?.. i can ...
5
votes
1answer
418 views

Content over 10,000 characters won't display with the_content()

A friend of mine just noticed that their site wasn't displaying pages that had a lot of content. For some reason they are just blank, and if he removes some content from the page it will display ...
0
votes
3answers
2k views

How do you edit the html of teaser excerpts

All my teaser excerpts have no formatting applied to them. With firebug I can get the text to look how I want by editing the html but I don't know where to edit the html in wordpress. How can I do ...
0
votes
2answers
680 views

Pasting code into pre-formatted text in Visual Editor not working in 3.3.1

Pre-formatted text in the Visual Editor is not behaving like I'm used to. I've got an old installation (3.2.1), and when create pre-formatted text, all the line-breaks and spacing is preserved. In ...
6
votes
6answers
2k views

Nice way to print_r arrays

So you know how Drupal has functions in modules like Devel that allow you to output arrays in a nice format like dsm($array) or krumo($array)... Does WordPress have an equivalent or a nice way of ...
0
votes
1answer
48 views

Space Not Being Generated in HTML Output?

I'm using a code called custom_link_pages to generate my multiple page post links, but I'm getting a space between my page numbers and previous link, but my next link is missing the same space. ...
0
votes
2answers
622 views

Using Microsift Word/Outlook for content publishing to Wordpress

I am tasked with building an tool to allow users to publish to Wordpress from their PC using MS Word and Outlook. I know, completely defeat the purpose of having Wordpress, but the basic requirement ...
0
votes
1answer
957 views

Adding to he format dropdown menu tinyMCE in Wordpress

Does anyone know the steps needed to add a custom format to the blockformat (p,h1,h2,h3 etc.) dropdown in the tinyMCE editor in Wordpress? I've found a lot of different ways to do that, which seem to ...
-1
votes
1answer
571 views

How to show only text from post in WordPress

How do I retrieve just the text of a post in WordPress not including any pictures?
0
votes
2answers
73 views

HTML tables in content areas

Is there a plugin that would allow me to create and edit tables within the content block in posts and pages? I suppose a bit like the 'insert table' command in MS Word.
0
votes
2answers
463 views

TinyMCE - no auto formatting using the_editor()?

I'm embedding the_editor on a admin page: <?php the_editor(get_option('options_name'),'options_name'); ?> And everything works fine, at least in back-end: BUT on the front-end side I'm ...
0
votes
2answers
396 views

Pasting formatted text from MS-Word

I want to paste into Wordpress posts large amounts of text stored in MS-Word files. When I directly copy-paste from MS-Word, the page usually breaks because of various MS-Word control characters. So ...
0
votes
1answer
933 views

How to remove filter apostrophe and single quotation

My wp version is 3.2.1 In wordpress, the apostrophe/single quotation will transfer to &#039; And I'd better need to transfer to %27; I tried to edit formatting.php, in line: $string = ...
2
votes
2answers
2k views

When calling wp_title(), do you have to create some kind of “title.php” file?

... or does wp_title() already handle the various contexts in your blog? This could clarify for me how I can achieve a reusable index.php file without having all the conditional statements inside it ...
0
votes
1answer
713 views

What does the Global Variable $s represent?

What does the $GLOBALS['s'] variable contain? It looks like an empty array, but what would it normally hold? I've encountered it in a tutorial: The WordPress Theme: Single Post, Post Attachment, ...
1
vote
2answers
233 views

How can I prevent Wordpress to wrap <br> into a <p> paragragraph

When I create a new page and put <br class="clear"> into the HTML view it gets rendered as <p> <br class="clear"> </p> This causes problems with the theme ...
-1
votes
1answer
60 views

Formatting text in posts

In a post on WordPress, is there a way of selecting items of text and applying formatting, such as font / font style and font size? I see that there is a 'Format' dropdown... should I change the ...
0
votes
1answer
220 views

All images on one line for each post

Having trouble getting around the issue where my client wants all of the images for each post to be on one line. This can be done in the editor, but they are not very tech savvy -- just wants to be ...
0
votes
1answer
730 views

Formatting a date/time returned from a custom $wpdb query

I'm definitely a rookie WordPress/PHP developer, so please forgive ignorance :-) Q: How do I format a date/time returned from a custom query against $wpdb? Here's the scenario: I'm trying to write a ...
1
vote
1answer
157 views

Unwanted line break before <input>

Based on help here ( Use of Javascript with Dojo/Dijit on a WordPress page) I got Dijit half way working using a custom template. But, I still can't figure out why WP inserts breaks where it does. ...
0
votes
3answers
1k views

Displaying Meta-Box Data Properly

Quick and dirty, I have meta boxes pertaining to concert information. (i.e. venue and location) and am trying to figure out how to properly display them in my post. At the moment to display the ...
2
votes
2answers
673 views

Add dollar sign and commas to a number?

I have a field on the admin side where a user enters a number for a price. If a user enters 1000000 I'd like to be able to display on the front-end $1,000,000. Any ideas on how to accomplish this? ...
3
votes
2answers
11k views

Change CSS/formatting on specific page, but not pages in general?

How do I change the formatting on http://wordpress.barrycarter.info/index.php/voronoi-temperature-map/ so that (for example) the map's nearly flush with the bottom of the menubar? I don't want to ...
0
votes
1answer
221 views

Display KML (or other “raw data” file) nicely in WP?

I want to display this file: http://data.barrycarter.info/aprswx.txt on wordpress.barrycarter.info, but all my attempts fail because of preprocessing: ...
2
votes
1answer
1k views

Add visual editor capability to custom excerpt window?

The custom excerpt field (under Add New Post) only accepts html. Thus, you can't just cut and paste a segment from the Visual Editor. If you want links to appear in custom excerpt, you have to know ...
3
votes
4answers
6k views

Keep HTML format when switching from Visual to HTML editor

I've been looking around for a solution that will allow me to edit HTML code and have it remain after a switch to the Visual editor and back. I've tried a bunch of things with no luck: the ...
2
votes
2answers
654 views

Comment formatting with comment_content

I'm displaying a comment outside the comment template, getting it with get_comments() and echoing the comment_content. My problem is that the comment loses the formatting (paragraphs, line breaks, ...
0
votes
2answers
163 views

why doesnt my formatting work in my wisiwig editor?

I am trying to format my post with extra blank lines. But for some reason they dont get reflected when i save it? But the underline etc work fine Any idea how to sort this problem
1
vote
1answer
466 views

Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?

sanitize_title_with_dashes (see code below for reference) is the function Wordpress uses to format "pretty" urls. However, contrary to the function's comment header, it allows much more than ...
0
votes
2answers
641 views

Wordpress no longer holding post formatting

When creating a new post, by entering either manually or pasting from another document, TinyMCE (the default WordPress editor) does not seem to hold any type of formatting. For instance I create a two ...
0
votes
1answer
100 views

Problem with -> in pre tags

Hello I am having a problem in a pre tag. All of a sudden all my '->' appear as '-&gt ;' on my blog. How can I solve this? I have updated to the newest version.
4
votes
2answers
625 views

Remove wptexturize from a shortcode?

Is there a way to remove wptexturize only for a certain shortcode?
0
votes
3answers
1k views

Automatically added brs and paragraphs?

Here's my very simple shortcode: function box_shortcode( $atts, $content = null ) { extract( shortcode_atts( array( 'width' => 'auto', 'height' => 'auto', ...
0
votes
1answer
149 views

Formatting error with source code on WordPress.com?

I've been trying to post some Java code to my blog, but it seems like it has some problems with the formatting. First, whenever I copy/paste code into the editor, it's pasted as pre-formatted, which ...
0
votes
3answers
408 views

Style wordpress image captions in RSS

My WordPress site includes the full article in its RSS feed. This includes the text of the post and basic formatting. It also includes post images and their captions. The problem is that my captions ...
-1
votes
1answer
162 views

Can't get blog entry to format properly using wp-load

I'm setting up a blog that I'm trying to integrate the posts of into old site pages. The $id = $_GET['article_id']; $post = get_post($id); setup_postdata($post); echo $post->post_content; ...
1
vote
1answer
2k views

Formating the display of a post's date, outside the Loop

I'm using this function to be able to retrieve several data, from outside the Loop: function get_post_data($postId) { global $wpdb; return $wpdb->get_results("SELECT * FROM $wpdb->posts WHERE ...
11
votes
2answers
9k views

can I add a custom format to the format option in the text panel?

In the text editor, where you can set headings and other settings, is it possible to add your own styles for clients to use? and even remove the unnecessary ones?
2
votes
2answers
277 views

Why is WordPress WYSIWYMG and how do I make it WYSIWYG?

WordPress may have a text editor that appears to be WYSIWYG, but upon using it I discovered that it is actually WYSIWYMG- What You See Is What You Might Get (once it's done screwing with the HTML). ...
1
vote
2answers
658 views

Line breaks not showing up properly

I'm trying to have spacing show up between a paragraph and heading in the following excerpt: In my article series on handling extracurriculars, I coined the term Sovereign Zen philosophies. It builds ...
5
votes
2answers
854 views

Formatting Code Snippets on Free WordPress.com Account?

I've got a WordPress blog on WordPress.com. When posting something I'm including some sample Java code in the <code tags, is there any way I can have this formatted better? Such as syntax ...
1
vote
1answer
407 views

Format the Layout of Images In The Edit Post Textarea?

The textarea in which posts are written and edited doesn't handle image layout very well. Inserted images seem to be aligned with the left edge of the textarea, or the right edge of the previous ...
0
votes
3answers
1k views

How to Prevent WordPress from Automatically Applying Inline Styles to Post Images?

I am wondering how to prevent WordPress from applying in-line styles to image enclosing div's in posts. <div class="img size-medium wp-image-3267 alignright" style="width:190px;"> Edit: The ...