The tag has no wiki summary.

learn more… | top users | synonyms

18
votes
9answers
12k views

Stop Wordpress Wrapping Images In A “P” Tag

I have searched high and low for a simple solution to this, but to no avail. Wordpress keeps on wrapping my images in p tags and because of the eccentric nature of the layout for a site I am working ...
11
votes
2answers
4k views

Best practices for localizing WordPress content?

A client asked for a blog that will have localized content (i.e. en.blogname.com for English content, fr.blogname.com for French content, etc). Being new to building such a blog, we recently ...
10
votes
2answers
422 views

How can I keep the content of my pages version controlled?

We have a WordPress-based website that provides documentation to our REST API. Since our API is constantly changing, so is the documentation. However, we would like to keep the documentation version ...
8
votes
4answers
2k views

What methods to use to create small, editable pieces of text for static pages?

For many of the sites I do for clients, the designers will make pages with small pieces of text in various places. For example, the home page will have a headline, a tagline, and a small box with ...
6
votes
5answers
572 views

What's the Best Way to Structure a Multi-Content Blog?

A Little Background I've been running a blog for 4 years that discusses just about anything I feel like writing. My car, backpacking trips, my church, marketing strategy, WordPress code, movies I ...
6
votes
2answers
971 views

Extract image from content and set it as the featured image

The problem: I'm posting from the Wordpress iPhone app. When adding an image, the image shows up in the description itself, which I don't like. What I'm trying to do: Remove the image from the ...
5
votes
1answer
819 views

How to Handle Distributed Development Workflow

I'm trying to come up with a workflow for two (right now) people. One of whom will be doing theme work and another who will be writing content. We are not co-located are will not be anytime soon. The ...
5
votes
1answer
341 views

Content generator for development site

Does anybody knows good plugin which can generate dummy posts/tags/categories/users and write dummy comments? I want to generate some content on my development (localhost) site.
4
votes
4answers
6k views

I want to have my custom field use HTML, how do I do that?

I want to have my custom field use HTML, how do I do that in such a way that I can use a rich text editor to view the content?
4
votes
3answers
331 views

Editing Complex Pages in Visual Mode

This might be a stupid question, and maybe I've missed some best practices thing, but I've been having this problem with clients using sites on WordPress. Let's say we have a fairly complex page that ...
4
votes
2answers
9k views

Get content from one page and show it on another page

So, I've been googling and reading and testing and failing. I'm fairly new to php, so don't expect to much :) I'm working on a new design, and I want to show content from the about page on my ...
4
votes
2answers
107 views

Presentation vs Content in WP DB-Tables

Presentation vs Content in WP DB-Tables Is there a clean separation between the WP tables involved with presentation vs content? I would like to take my time working up presentation changes, such ...
3
votes
3answers
789 views

Get entire page content (generated HTML in browser)

I'm looking for a filter that provides the full page generated in WordPress - including the head section with meta tags, body, styling and dynamic content. the_content() and the_excerpt() do work only ...
3
votes
3answers
272 views

Recommended Books on WordPress for Management and non-Developers?

I've had a few non-technical clients have a tough time with WordPress' admin UI. One of them asked me today if there were any books that could help someone like him - someone who is only concerned ...
3
votes
2answers
3k views

Multiple areas of dynamic content in a page

I am new in Wordpress and what I really can't find how to do is the following: I have a new Page created from the CMS. This pages have different modules with text. Take for example this template ...
3
votes
1answer
109 views

How can you make sure authors' posts are longer than 250 words?

I'm making a website that authors can sign up to and write articles. However I don't want low quality posts submitted. So, firstly I want the posts to be not empty and to be longer than 250 words. ...
3
votes
2answers
1k views

What is the best way to include a widget in a Page?

I am setting up a new WordPress blog and would like to include a widget in the content of a Page. I found some forums describing PHP hacks which appeared to apply to older versions. With WordPress ...
3
votes
1answer
584 views

Neither the_excerpt() nor the_content() works properly?

I'm wondering what should be used in index.php (post listing page): the_excerpt() or the_content()? Twenty Thirteen uses the_content() but this prints entire content unless <!--more--> exists ...
3
votes
1answer
2k views

What server settings are required to import WordPress XML file

I am trying to import my site using the WordPress import XML page. My XML file is 7mb so when I try to import it I receive a "500 Internal Server Error" page. I read some other posts and tried using ...
2
votes
3answers
640 views

Is there un-wp_autop function?

I have a problem with WP that need your help. Some of my posts have content that was applied "wp_autop" filters already. This filter turned all double break lines into <p> tag. I want to the ...
2
votes
3answers
162 views

What is a good way to present templated content in WordPress?

I'd like to be able to add a template for a page that will present pages with similar data in the same style. For example, I want to be able to create a "Person Profile" template so that all personal ...
2
votes
3answers
739 views

Pinterest Integration Using functions.php

I use a theme to build an portfolio. I´d like to add an pinterest "pin-it button" into the fuctions.php: Facebook, Google+ an Twitter were done, just the pinterest won´t work. Can´t found the the ...
2
votes
2answers
175 views

Hook for URL request

I would like to make XML files downloadable, instead of allowing the browser to displaying them inline. I know I can use the Content-Disposition: attachment HTTP header (of course, better solutions ...
2
votes
2answers
4k views

Stop WordPress automatically adding <br> tags to post content

Is there a way to stop WordPress from automatically inserting <br> tags when adding returns in the WordPress text editor. I would like for it to behave more like a code editor where I can ...
2
votes
1answer
80 views

Adding content to sidebars

I am working on a three-column layout where all three columns will have differing content depending on the post/page in the main column. How would I go about giving the ability to change and update ...
2
votes
1answer
763 views

Change Output for Images in Content

I want to wrap some html (divs and classes) around the tag (to create the appearance of photo corners by way of an image sprite). Basically, I want to re-write all tags added by WP in the content ...
2
votes
2answers
1k views

Is there a way to share content amongst wordpress sites

We have a set of five health blogs which have been running for about six months. Other than using the same theme (styled slightly differently for each one), they are currently completely separate. We ...
2
votes
2answers
3k views

Get the content of a specific page (by ID)

I have the following front-page template made: In place of those large Lorem Ipsum blocks, I need to show an "excerpt" from a specific page to fill that box (a certain # of characters). So my ...
2
votes
2answers
993 views

Adding short codes from a page's content on header and hiding the same from page's content

I have created a page and added the following shortcode from wp-orbit-slider [orbit-slider category="test"] I want the contents of [orbit-slider category="test"] be displayed on the header ...
2
votes
2answers
1k views

Unable to get_the_content(); of a post in Wordpress via AJAX

I'm trying to ajaxify my Wordpress theme and I use the method described here and I'm now trying get_the_content of post via functions.php. Using jQuery, when I do alert(data) I get the 'title' echo ...
2
votes
1answer
146 views

Making an IE only site (Like a Mobile only site)

For those who are curious, I'm changing the theme but this theme relies on CSS3 and HTML5 and displays very ugly in IE 8 or below. - Especially the navigation. What I want to do is keep my old theme ...
2
votes
1answer
1k views

Database sync between local and production

I was watching Mark Jaquith's presentation at WCSF 2013 recently and in the Q&A Mark mentioned something about rsync - after a quick Google I can see this is done via SSH - my question is this: is ...
2
votes
1answer
51 views

Same content shared between multiple posts?

I want to have some cotent shared between various posts. Why? I am writing a series of posts on backbone js. The thing is every post has some common content ie from where you can download the ...
2
votes
2answers
285 views

Testing for post title in 'if/else' statement returns no content

I'm testing for a certain fixed post on an about page, I guessed that the best way is to test for post title (?). Here's my code, what's going wrong? <?php if (is_page()) { ...
2
votes
2answers
1k views

Have multiple local wordpress installs share a wp-content folder and database

On my local machine, I have multiple wordpress versions installed so I can test the themes and plugins I develop. I was wondering if I could somehow create a central wp-content folder and database, ...
2
votes
1answer
92 views

How to get full content including template HTML

I'm looking to get the page content between the header and footer (as Wordpress already does) that includes the template HTML (as this is going to be an AJAX request). Is there a function that will ...
1
vote
3answers
577 views

How to create a page template that retrieves content from db?

I have to create a hundred of content pages that share the same structure. For example: [Title] - [Subtitle] [Description] [Specs] - [Spec-A] - [Spec-B] - [Spec-C] [Features] - ...
1
vote
1answer
2k views

Edit the_content function

I want to edit the default function the_content(). I know i can add_filter('the_content', 'with_my_function') but im having trouble outputting the old content with mine. Heres an example of what im ...
1
vote
2answers
100 views

Grabbing specific content

Right now I'm doing this (pseudo code) posts = content_type("special_stuff"); $i = 0; $n = 5; $while(have_posts) { if($i == $n) { // print the content } ++$i; } This is what I'm ...
1
vote
2answers
167 views

How to change featured content to a different tag in Wordpress Twenty Fourteen?

In twenty fourteen theme, we’d like to know how to change the features content tag. Currently it’s set as featured. Now, we would like to know how to code this for different page templates. We ...
1
vote
4answers
405 views

How to use code sample into WordPress post?

I am using WordPress, and when I post some post data into my WordPress post, including some html code, as follows: <code><div id="access"></div></code> I want the code to be ...
1
vote
1answer
592 views

How to make multiple page out of one post

Suppose I write a long article and display products in one post but it is too long so I want to cut it and continue the next page in the same post? Can I do that in wordpress? I want to display many ...
1
vote
3answers
941 views

Hide content-box on specific pages (in admin)?

Is this possible to do somehow? In some pages i use a custom box plugin and i don't need to show the content box on some of those pages. Is it possible to hide it by page template? Or ID if template ...
1
vote
3answers
640 views

Finding the paragraphs in content

I am trying to create two functions, one that catches the first paragraph of some content, and one that catches the rest, but I have hit a bit of a conundrum. I have this in my single.php: <div ...
1
vote
2answers
12k views

How to get only text from wordpress post content?

I have been using wordpress for my projects. For my homepage of the site I need to display limited text from the post content and the content contains images as well. To display the 100 text i have ...
1
vote
1answer
109 views

Wordpress theme options vs custom post types

For dynamic content across a wordpress website, is it a better practice to create new post types for updating content or using theme options? I personally find theme options a little more time ...
1
vote
2answers
591 views

Better way to remove HTML syntax from all content

I have a bunch of articles imported via a very old Joomla 1.0 installation. The content of these posts have a lot of unwanted inline html. I was able to clean all with something like this (I made a ...
1
vote
1answer
44 views

content gets scrambled

Every time someone edits our blog the content is displaying all wrong. It looks perfect in the wysiwyg editor but when you publish the page the content is completely wrong (pictures displayed next to ...
1
vote
1answer
215 views

Conflicting post edit options under dashboard

My dashboard( It is multisite Installation ) section for pages and posts conflicts with options when there are morethan 5 data fields . For example : I have these things under my Posts section in ...
1
vote
1answer
57 views

Wordpress function/template tag to get first n words of the content

OK, this might be a duplicate, I was just unable to put my idea in proper search terms, sorry for that! Is there a built-in function or template tag to get the first n words of the content? I mean ...