The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
86 views

How to add a shortcode that creates an adjacent column of text in the content editor?

I'd like to enable a shortcode toolbar button, similar to the "More" break, that I can click to mark an insertion point where the text should be broken into columns. Do shortcodes have encapsulation ...
0
votes
1answer
115 views

Add Content to Content()

The Question::: This is a strange question but I need to add content to content() in page.php. How do I do this? The Why::: You see there's a plugin that uses the [plugin id="1337"] and I am linking ...
0
votes
2answers
572 views

Get full content from feeds and save a duplicate copy in my site

Okay Now I'm editing old problem because its done but now i've new problem I've knowledge of mysql queries but not wordpress queries I'm doing this with mysql queries and its working well but server ...
0
votes
1answer
250 views

How to show content for posts of a specific category only

I show excerpts of all posts at this site. Which works fine. However, I would like show content for posts of a specific category, while keeping all others showing excerpts. Is it possible, without a ...
1
vote
1answer
596 views

Stripping the_content() from images then displaying them seperately

Ok, I've got content with images removed using this code: $content = strip_tags(get_the_content(), ...
0
votes
2answers
541 views

the_content() returning null in one category only, even though there is content

A friend's heavily customized blog has a category with a specific categoryname-single.php file to display posts. Apparently for no special reason, since yesterday, the_content() is not returning any ...
-1
votes
1answer
274 views

Integrating custom API for post content into Admin interface & Public Website [closed]

EDITED question to be more specific and added bounty in hopes someone has a solid coded solution: So, here is an interesting task I have been trying to find a solution for. I have added a bounty ...
0
votes
1answer
72 views

What is the correct method for updating post content from a plugin?

I would like to create a plugin which updates the post's content in the Admin panel. For example, on the Edit post page, the user sees his draft content. If he clicks on a button from a meta box ...
0
votes
1answer
189 views

Extract Information from post content (using regex?)

I'm trying to replace some custom strings in my content before saving the post. I have got the $data["post_content"] which includes strings like %replaceContent:{type}% . Now I need to extract that ...
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 ...
1
vote
3answers
639 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
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 ...
0
votes
1answer
34 views

Display a paragraph in the index page that won't be displayed in the single post

Can i make it possible for an excerpt to be displayed in the index page but that part of the excerpt will not be displayed in the single post anymore?
0
votes
2answers
2k views

Get the Page Content,without generating HTML

I want to get the page content (so i can parse the tags/short-codes in it), but i don't want to output the result itself to the browser (i.e. echo=0). I tried get_the_content(); but its the same ...
1
vote
1answer
393 views

How to customize tag and category post listings to show introductory content?

In wordpress, we allow google to index our category and tag pages. We don't use no-index for tag or categories, which results very high ranking in a lots of keywords and we are receiving very high ...
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 ...
0
votes
2answers
872 views

Remove image from post_content on save_post

I'm trying to setup a function in functions.php that removes an image from the post_content on save. Everything works up until the time I'm trying to save the content, the page just hangs and I get a ...
4
votes
3answers
330 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 ...
1
vote
1answer
265 views

Can somebody tell me how I am supposed to be using blogs.dir for network / MU sites?

I think blogs.dir is supposed to be used to separate content for the different blogs on a network install of Wordpress (MU or 3.0+ with networks enabled), however, I've not been able to find a clear ...
1
vote
2answers
738 views

Displaying latest Posts - fixed height - Excerpt vs. Content?

On my static frontpage, I would like to fetch the two latest posts as shown in this link. Now the posts should always be displayed like this (i.e. constant height, limited number of characters), no ...
-3
votes
1answer
67 views

styling the contents

I am newbie to wordpress and just started to play with themes. My problem is I want to change the css of the content part and for that I want to know by default the content comes in the blog page ...
0
votes
2answers
69 views

search and add in wordpress content

I have a wordpress plugin that displays videos through a shortcode. My problem is it assigns the div's with ID's such as video-1-player, video-2-player, etc. I need to create a function that searches ...
0
votes
2answers
262 views

upgrade has caused page content to disappear

I've just transferred a site from one server to another and gone through it and tested it and made sure all the content was there etc etc. I then did a backup of the database via phpMyAdmin and did an ...
0
votes
1answer
278 views

Plugin for visitors to edit content without logging in? [closed]

I have a company catalog and want visitors to edit the information without logging in. I have tried TDO Mini Forms and it almost worked, too many bugs. Is there any other good plugin for this?
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 ...
0
votes
1answer
343 views

the_excerpt function not showing image

I am having posts with images.In single post page all contents displaying well with image. But in blog page , the content only displaying not an image. How can i make it to display For example, ...
0
votes
1answer
584 views

tabbed content box with different tabbed background images

I am currently looking for a way to replicate the image I have below. I have come across many tabbed content plugin's and snippets of code, but I cannot figure out how to add different background ...
1
vote
2answers
1k views

Static files or dynamic WP pages for “static content”?

Ok = I've looked around a lot for a clear answer to this, but find very few real answers. I would really appreciate some info from experienced individuals. A tiny bit of background. I've worked ...
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
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 ...
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 ...
0
votes
1answer
213 views

Single dash converted to double dash

As the title says, if a single dash is used with a space between each side eg. 'Die Hard - Action Film' is written in to a WordPress post, once published it comes out as 'Die Hard -- Action Film'. If ...
0
votes
2answers
148 views

Display a specified content on a Page and all its child pages

I have a website with 5 main pages (consider them as sections), then 3-5 sub pages for each of them. I would like to display a flash banner for each section, i.e. it should display the flash banner on ...
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] - ...
0
votes
1answer
2k views

Import and replace existing page/post content

Is there any way to import a basic, exported Wordpress content XML file and have it replace the existing content? What I'm trying to do is synch up two instances of a site (development and staging ...
0
votes
2answers
157 views

What is the best practice to localize content? (Geographic not langauge)

I have a website that needs to display state-specific versions, for a few states. Obviously, I will need to parse the IP address to gain geographic information. Before I start making that plug-in, I ...
1
vote
5answers
2k views

Display post shortcode content in the sidebar?

I need to display images and other content in the sidebar depending on a page. Pages are added dynamically and information that need to appear in the sidebar is different for each page. So I can't ...
1
vote
1answer
316 views

remove inline scripts from the_content() produced by plugins?

hey guys, any idea how I could filter all inline javascripts from the content()? thank you
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 ...
0
votes
1answer
840 views

Function to get content by ID

I'm trying to get text only content of posts by ID. I modified this function as follows, but at the moment it returns nothing. I cannot see what's wrong with it. function get_the_excerpt_id($post_id) ...
6
votes
5answers
571 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 ...
0
votes
1answer
290 views

definining own teaser text for post

i'd like to have a small news box in my sidebar - so i need to display just a few lines of text, separated from the actual the_content() - how could i do that? it should be somekind of quicktag which ...
0
votes
1answer
420 views

Excerpt vs content formatting woes

One of my posts has the following content: This is a test post. Nothing more, nothing less. Three lines before the jump <!--more--> And a couple of more lines after the jump. Note: these were ...
0
votes
1answer
139 views

Page displays content from different query?

How can I reset all variables in order to get the actual page content? I keep getting the last post's content I've called from a news-box I've implemented - but need the actual page's content .. ...
0
votes
1answer
190 views

Timed content and flagging content as viewed by user?

I'm trying to put together a site with membership functionality and i'm having most of what i need together. However, what's still missing in the mix are two things: 1) I need to be able to display ...
1
vote
2answers
1k views

Javascript Solution Remove Specific Tag but leave the rest in a specific DIV

I have a div structure that looks like this... <div class="gallery_lightview"> <div id="lg_image"> <a ...
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 ...
0
votes
3answers
871 views

Output custom content not from the posts table?

It would be best if I started out be explaining the situation: A while ago I created a Property/Real Estate management system using PHP and MySQL. It works great and I have a lot of customers using ...
1
vote
1answer
691 views

The entire content of my Wordpress page has disappeared

I have a blog installed on my site using Wordpress. Last week I upgraded Wordpress from 2.6 to 3.0.4 (I had to do this manually). All went well, or so I thought, but I have just noticed that the ...
-1
votes
2answers
1k views

How to use str_replace() outside the loop?

Is there any way to use str_replace() in Wordpress outside the loop? I want to change my html markup which starts before the loop. I need something like this: function content_magic($content) { ...