Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
523 views

Is it possible to display a DIV to not logged in users and then change it for users who are logged in?

Basically I'm putting together a magazine site that wants a strong focal point on the homepage for users who haven't signed up, if the user is logged in we need this content to show something else, is ...
1
vote
2answers
1k views

Add Word Limit to Posts

Is there a way to limit the number of words per post through the the_content() function or something similar?
0
votes
1answer
76 views

matisse theme show excerpts not whole content

I want to only show the excerpts, not the entire content, This question has been asked and answered in respect of the twenty eleven theme. Matisse theme is different. where can i find the files to ...
0
votes
2answers
76 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
1answer
746 views

How do I do a page break?

Is there a way to add a page break into length pages? Preferably automatically, but doesn't really matter. Ideally without a plugin.
2
votes
1answer
798 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 ...
0
votes
2answers
73 views

Wordpress general content best pratices

Im trying to figure out howto structure general content that should be easy to import in a page template. Lets say for example i have some contact details and i want to include this content on ...
0
votes
1answer
1k views

jquery: getting contents of #content field on post page

I managed to get the #content field html with this jquery call: jQuery("#content").html() This seems to be failing though on "Add New Post" pages. Any tips on how to get the contents of the ...
4
votes
2answers
10k 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 ...
0
votes
1answer
89 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
118 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
606 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
291 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
633 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
557 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
276 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
73 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
197 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
690 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
35 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
395 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
1k 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
924 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
348 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
287 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
777 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
69 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
70 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
288 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
289 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
45 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
355 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
609 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
411 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
223 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
637 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
162 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
336 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
596 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
862 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) ...