The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
2answers
4k views

Remove hidden formatting when user paste text from MS Word into TinyMCE

Around a fifth of post submissions that I receive contains ridiculous amounts of hidden formatting. For example, here is some of it from a recent post: <!--[if gte mso 9]><xml> ...
7
votes
6answers
5k 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
2answers
80 views

Exclude uploaded files from appearing in the excerpt()

In a post I have some text and some media attachments and when I use the_excerpt(), it strips all the anchor tags from the attachments and shows just their file names and its causing me problems as ...
0
votes
1answer
438 views

Multiple Rows in a <table> using wp_query

I am displaying posts in a grid (4 posts wide by 2 posts high). I am using a table. In order to get the content to display on the second row, I am using two wp_queries (one on each row) because I ...
0
votes
3answers
140 views

return unformatted content in encosing shortcode

I've written a little shortcode, following basic instructions on Wordpress Codex: function myshortcode( $atts, $content = null ) { extract( shortcode_atts( array( ..., ), $atts ) ); ...
1
vote
2answers
338 views

Unautop / Sanitize content added to a post through a plugin

I am using the SimpleReach plugin that adds some content to every post using the content hook. The content that is being added is <!-- SimpleReach Slide Plugin Version: {{srslide_plugin_version}} ...
0
votes
0answers
258 views

&#8217 instead of apostrophe and  instead of space

I'm using following codes to have a share button via email. In the mail content box, when I tried to share some posts to test using the button, excerpt showing &#8217 instead of apostrophe and  ...
4
votes
4answers
11k 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 ...
0
votes
1answer
63 views

How do I display page content next to a contact form, rather than under it?

Using a stock wordpress theme and contact form 7. Lots of room on the form's right but it insists on putting everything underneath it.
0
votes
2answers
62 views

Wordpress options text format

Wordpress converts my theme options text with smart quotes. I know that to remove problem from posts etc: remove_filter('the_content', 'wptexturize'); remove_filter('the_excerpt', 'wptexturize'); ...
0
votes
1answer
200 views

Add Default Wordpress Formatting To Data From External SQL Tables?

I have a number of external SQL tables that have data in exactly the way I want and I would like to use them to populate various wordpress posts with shortcodes. The problem is that I don't ...
-1
votes
1answer
41 views

Is there a way to reorder a collection of posts to read from top (oldest) to bottom (newest)?

After I complete a collection of posts, can I reorder them in reverse to read from the top (oldest post) to bottom (newest post)?
1
vote
4answers
98 views

Formatting with <pre>

I'm building a site that doesn't want any styling applied to the entry-content, because it should keep the formatting of the text. Bizarly, it works on old entries, but new entries via the front-end ...
3
votes
1answer
2k views

Create a formatted table-like menu

I've just put the site up a couple weeks ago and adding some more things to it for my friend however there's got to be an easier way to lay content out over wordpress. I've having a hard time with it ...
1
vote
1answer
255 views

Crafting WP_Query array, sort by date

question about wordpress WP_Query: 'post_type' => 'event_date' outputs dd/mm/yy ex: 31122012 I would like to order my frontend 'event_date' output not by latest WP post entry but by latest ...
0
votes
2answers
148 views

Linebreaks behaving oddly inside blockquotes

I'm using a vanilla up-to-date WordPress install. I've noticed that the visual editor, even in text mode, does not show <p> or <br> tags, and if you insert them it strips them out and ...
0
votes
1answer
198 views

E-Commerce Products Page Sidebar Formatting

I inherited a wordpress e-commerce website from a developer that only half finished the project. I do not know alot about css or php, but I have been able to play around with the coding enough to ...
0
votes
1answer
102 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.
1
vote
2answers
229 views

Displaying Archives List

I'm displaying list or archives using <?php get_archives('monthly', '', 'html', '', '', FALSE); ?> and my list displays December 2012 November 2012 etc However I would like to format ...
5
votes
2answers
1k 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 ...
0
votes
2answers
792 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
424 views

How do I format the date in Event Organizer?

I would like to format the dates to be June 17, 2012 11:00am as opposed to the 17 June 2012 11:00am that Event Organizer outputs.
0
votes
2answers
2k views

Stop wordpress from adding html tags but not remove my own tags?

I've been trying to make wordpress stop adding html tags to my content but leave my own html tags alone? Tried remove_filter( 'the_content', 'wpautop' ); and installed PS Disable Auto Formatting ...
0
votes
1answer
58 views

Custom formatting

After some advice to get pointed in the right direction. I am knocking together a site for a friend who isn't the most technical minded so want to make the process easy and of course Wordpress offers ...
0
votes
1answer
57 views

Multiple item layout with one query

in my homepage I have content boxes with different layouts. Every box has an image and the post title corresponding to a single post. How should I use only one single get_posts() and format the layout ...
1
vote
0answers
226 views

How can I remove <br /> line breaks from manually formatted HTML?

I see a lot of posts here and elsewhere having trouble adding line breaks for some reason, but I'm trying to remove them. I'm new to WP, and I see that when editing in "HTML" mode the text is rendered ...
11
votes
2answers
12k 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?
1
vote
1answer
67 views

How to define a custom font family for a wordpress blog that will not affect the entire site

While my related question on Stack Overflow should explain the basic CSS for this once it gets answered, how would I define a custom font family for a wordpress blog that will only apply to a ...
0
votes
2answers
750 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
76 views

Special Formatting for WordPress Plugin Description?

Last question, I am supplying the Description of my plugin see the part of this called "Customizing the Plugin Information Box", and I can't get any HTML format to work. It just prints off like normal ...
0
votes
3answers
2k 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 ...
2
votes
1answer
267 views

Use a language specific thousand separator

I have a views counter on each post. When it reaches for example 1000, it adds a dot as the thousand separator, the result is 1.000. This is odd in my language, I should have a space as separator or ...
4
votes
1answer
1k views

Automatically decrease font size for long words

I am working on an e-commerce site in which post and product titles will need to be displayed in fairly narrow divs. I would like to set a specific font size for words which can naturally fit in the ...
0
votes
2answers
526 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 ...
1
vote
2answers
2k views

How can I add custom text styles to the visual text editor?

By default an author can select from Paragraph, Address, Preformatted, Heading 1, etc.. As an example I'd like the author to have the ability to visually wrap selected text in a tag, without ever ...
0
votes
1answer
206 views

post_class() breaks out of formatting. . . extra markup also generated

Hoping Im just running into something easy Here's the scenario, I've created a function called tr_get_post_image_tplt that spits out the post thumbnail (or custom size) for the post being called. Im ...
0
votes
1answer
289 views

Removing Line Break Tags from a Page

I am running the latest version of Wordpress on the Genesis Framework with the AgentPress theme. There is an annoying four line gap between the page title and the Wordpress Post Tab widget that I ...
1
vote
1answer
199 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. ...
2
votes
2answers
948 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 ...
3
votes
1answer
505 views

WordPress adding <br> tags into plugin content

We've written a plugin that shows reviews upon usage of a shortcode. On some sites, Wordpress is adding <br> tags throughout the shortcode content, and others it does not. The shortcode works ...
1
vote
2answers
1k 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 ...
0
votes
1answer
128 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
1k 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
1answer
3k 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 ...
5
votes
1answer
565 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 ...
-1
votes
1answer
785 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
1answer
50 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
1answer
1k 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 ...
0
votes
3answers
2k 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', ...