The formatting tag has no wiki summary.
2
votes
3answers
176 views
Preserve white-space in Page
I frequently post pages with code examples. However, Wordpress strips out whitespace, thus ruining the indentation and formatting of my code. So this:
<pre>
selector {
property: ...
5
votes
6answers
1k 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 ...
2
votes
4answers
4k 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
30 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
41 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
85 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
32 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
67 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 ...
2
votes
1answer
360 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
162 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
54 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
92 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
98 views
Problem with -> in pre tags
Hello I am having a problem in a pre tag.
All of a sudden all my '->' appear as '-> ;' on my blog.
How can I solve this?
I have updated to the newest version.
1
vote
2answers
66 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
611 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
474 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
115 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
527 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
41 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 ...
1
vote
2answers
1k views
Shortcode from a widget is wrapped in unwanted <p> element
I'm using Black Studio TinyMCE Widget as a rich text editor widget. In a sidebar I inserted the TinyMCE widget with a [testimonial] shortcode and some content after it.
For example:
[testimonial]
...
0
votes
1answer
48 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 ...
0
votes
1answer
62 views
Displaying custom posts inline [closed]
I need to show the results from below code to be showing inline one after another horizontally.
$loop = new WP_Query( array( 'post_type' => 'books', 'posts_per_page' => 3 ) );
while ( ...
0
votes
0answers
167 views
List Category Posts styling [closed]
I want to style my posts so that they are formatted like this:
1 2
3 4
5 6
7 8
. . .
I have tried creating a li class name (.the-listing), tried the ul class .lcp_catlist, the content class ...
1
vote
0answers
113 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 ...
-4
votes
1answer
172 views
Does a plugin file have to end with ?> [closed]
For plugin files, does a php file have to be ended with ?>? I'm asking this because I'm getting the error, XML Parsing Error: XML or text declaration not at start of entity and found this post: ...
10
votes
2answers
7k 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
64 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
542 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
161 views
How to prevent automatic conversion of dashes to –
When I put -- into a post it is automatically converted to the – – character in the output by wordpress.
How can I get normal '--' double dashes in my content.
0
votes
1answer
37 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
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 ...
2
votes
1answer
101 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
447 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
397 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
384 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 ...
1
vote
3answers
1k views
Keep formatting for tables copied from MS Word?
I've found that copying and pasting tables from MS Word was closest to easiest when it comes to making tables; rather than formatting a table from scratch in a WYSIWYG editor.
The one shortfall I've ...
0
votes
1answer
119 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
124 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
121 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
2answers
467 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
254 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 ...
3
votes
2answers
2k 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');
...
1
vote
2answers
487 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
103 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
237 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
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
443 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
298 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
1k 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
399 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?
