The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
606 views

get parent content inside child posts

I have a custom post type where I've created 3 pages in a parent-child relationship. The pages are created like this : PARENT-CHILD-GRANDCHILD I want the child and the grandchild pages to get the ...
0
votes
1answer
85 views

How can I add a default description to uploaded files?

Is there a way to add a default description for media files as soon as they are uploaded to WordPress? Specifically, I want to modify the code here to extract the text from PDF files and include it ...
0
votes
1answer
69 views

Change default italic from <i> to <em> in admin editor

I've noticed that the admin editor by default embeds any italic texts with <i> which I intend to use for icon styling. I much more prefer to wrap them with an <em>. How would I got about ...
0
votes
1answer
3k views

the_excerpt() in content.php and get_template_part() in single.php

everybody. So I'm creating a blog theme and have put the_excerpt() in content.php My index.php displays different post excerpts for the different kind of posts-formats. I have content-gallery.php, ...
0
votes
1answer
58 views

Recommended sidebar / content widths

I'm developing my own theme. Does WordPress recommend or require a minimum or maximum when it comes to the width of the content or sidebar elements of an post, page or archive page? If not, are there ...
0
votes
1answer
1k views

Show content after the first and second paragraph

The function below is used to show certain content after the first paragraph. I would like to show 'content X' after the 1st paragraph and 'content Y' after 2nd paragraph. <?php $paragraphAfter= ...
0
votes
1answer
262 views

The_excerpt() doesn't parse <!--more--> - how to change that?

I'm using the_excerpt(); in blog.php file (post listing page) and it doesn't recognize <!--more--> if "Excerpt" field is empty and it grabs the beginning of the content as excerpt. This issue ...
0
votes
1answer
53 views

About Wordpress capabilities [closed]

I know WordPress is best for blog engine and with some plugin like Advance Custom Field, WP can become a great CMS. But it still good for publisher to push content to user. Now I have quite a ...
0
votes
3answers
435 views

Page and post loop same template

I try to make template that has Page content in the main div but in the same page there is category base post loop whit title, day, content and read more link. What i had now is like this <?php ...
0
votes
1answer
186 views

Tags break custom Excerpt function

Quick question here. I have a function that echoes out the post-type's content (if none available, the excerpt). It looks like this: function era_excerpt($post, $length = 11, $ext = ' ..') { ...
0
votes
1answer
535 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 ...
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
119 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
561 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 ...
0
votes
1answer
617 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 ...
0
votes
1answer
434 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
197 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 ...
0
votes
2answers
217 views

append_content help

i have a function in my plugin append_the_content($content) this is used to display my function inside the post, but it is coming before the post, i want to make it after the post, for this i tried ...
0
votes
2answers
165 views

Why are my WordPress store items showing up in duplicates?

I recently became an admin of a WordPress site, for the purpose of setting up a store. I have little WordPress knowledge, so I will try to be as specific as I can. I am using the WP e-commerce plug ...
0
votes
1answer
439 views

Is there a way to trigger an automatic import of a WP backup on creation of a new WP multisite site?

I have a WP backup file of sample content I use when I set up a new site on my WP multisite install (I use it for theme dev work for clients). Is there a way to trigger the import function to fire ...
0
votes
1answer
41 views

Get Content From Blog Page

I have a page that is assigned as the "Blog". What I'd like to allow is the user to add content to this page then display it before the posts show up on index.php. I thought I used to be able to do ...
0
votes
1answer
174 views

Divide post content in three columns

Is it possible to split the_content() into three equal size columns? I have tried to achive that by getting this code which I found here <?php $content = get_the_content(); ...
0
votes
1answer
40 views

Using a custom field value as current users name [closed]

I'd like to use conditional logic to show a part of the single post page to a specific user. However the problem is Im pulling that username in from a custom field. Below is what I have so far. ...
0
votes
1answer
45 views

Website showing random code like texts in a post after pasting from MS Word

My website is showing this type of content in a blog. When I click the title of same content, the content is fine there. It shows this type of content in one of the many listed contents. What can be ...
0
votes
1answer
18 views

content summary of a post disappears If an images added at the beginning of the post. how to solve it?

If I put an image at the beginning of the post my content just disappears at the home page. but when I click read more button it shows full content (single.php) index.php <?php if ...
0
votes
1answer
27 views

add after content don't work

I am using this code to put some functions after content, but this one don't work. It appear before the content and not after. function add_wb_posts_pagination ($content) { $content .= ...
0
votes
1answer
365 views

Jetpack infinite scroll render - make different depending on post type?

I am currently working on a theme which has two post types - one is the normal "posts" post type, and the other is for portfolio posts - "mytheme_portfolio". I am using JetPack's infinite scroll to ...
0
votes
1answer
48 views

How to use full length of the upper part of the content and below of it is a content with a sidebar?

Can anyone help me with my problem although its simple but I'm just newbie in wordpress? Right now I'm using the default template of the theme with sidebar. So what I want to happen is above the ...
0
votes
1answer
116 views

Wordpress Twenty Eleven PhP - forcing php code to skip first post on homepage?

I have set up my Wordpress to add the wordpress Featured Image thumbnails to all posts on the homepage. How do I make the code skip adding [wordpress Featured Image thumbnails][3] to the first ...
0
votes
1answer
591 views

if the post has content

I am setting up a one page wordpress site. I am getting some pages listed in my site that does not have content. For example, I will get the empty blog page as well as the blog template. So I thought ...
0
votes
1answer
126 views

Strategy for handling hierarchical pages with empty parent content

Let assume I have the following page structure /about-us (used as a parent holder only) /about-us/history (real page) /about-us/team (real page) /about-us/industry (real page) There is no content ...
0
votes
1answer
35 views

Accessing the Posts page Content

I have a Posts page set in settings->reading - posts page is set to a page called "notes" How can I access the title, content & featured image of the page? WP seems to want to access the first ...
0
votes
1answer
68 views

Best Way to Add UnEditable HTML to Posts

I find myself more and more needing to use tables or divs inside my wordpress posts content. The problem I find with this is that one wrong backspace or newline, copy / paste has the possibility to ...
0
votes
2answers
2k views

remove <p> tags from the_content

I've got a post format of Image, and I am running into an issue where the image is being wrapped by a <p> tag. I want to get rid of that tag (specifically on the single.php version) of those ...
0
votes
2answers
64 views

How to add page content into another page

I'll try to explain myself and what I'm trying to gain. I run a DJ business and am trying to get into the Wedding market. One way is to make sure the slug of each page has "wedding-(venue name).html ...
0
votes
2answers
215 views

Insert Message before content of after title

How can I insert custom message after post title. For example The Post Title My custom message
0
votes
2answers
498 views

Two different pages that share the same content?

I have a self-hosted WordPress site. I need to display the same content on two different pages (a contact page and another page used for promotion purposes). They will need to have minor tweaks such ...
0
votes
1answer
37 views

same wordpress, 2 domains

I currently have 2 domain names. www.xclo.co.uk is my site hosted by wordpress (found here www.xclo.co.uk/dir) and also www.xclo.mobi obviously for my mobile site. now my .mobi site is pointed to ...
0
votes
1answer
85 views

How to exclude the word “class” from being matched in search?

I would like to exclude the word "class" from being matched to the search term "lass". On a site I'm helping manage, the search term "lass" is quite prominent. Unfortunately, that matches the common ...
0
votes
1answer
103 views

How can I call a specific file (via php) by referencing the logged-in username?

I want to setup a page that will display different content for each registered user of my site who falls within a specially-created user role ('map_user'). So, for example, if a site user who is in ...
0
votes
1answer
903 views

Filter/Remove HTML Elements on all posts and pages

I'm working on a migration from Drupal to WP. The database conversion and import went smoothly, but there is a lot of 'crap' in each post content such as divs with inline styles. Basically, in each ...
0
votes
1answer
270 views

Simple Math Quiz or Captcha to hide whois query form

I have a whois form in my site that enables users to query for domain name availability and if available gives them the option to request for registering it. The whois form is inserted via shortcodes. ...
0
votes
1answer
2k views

Display content of page template (get_page)

My problem is that I displayed content of 3 pages on index.php by using get_page(). The problem is that each of those pages have own page template /* Template Name: another page template */ which ...
0
votes
1answer
76 views

Iteratively add sub shortcodes to php array

I have this shortcode structure: [component] [type1]some content[/type1] [type2]some more content[/type2] ... [typeN]some other content[/typeN] [/component] I would like to have the ...
0
votes
1answer
780 views

Split content into multiple columns using more tag?

First of, this is pretty much an exact duplicate of: Split columns into three+ divs? But the given solution does not work (returns blank). I'm guessing it collides with qTranslate which adds some ...
0
votes
1answer
1k views

How to limit post content and remove image caption from it

I am using this function to limit the content in my themes. But the problem is whenever I call the function, it also displays the image caption. I want to remove the image caption when calling ...
0
votes
1answer
155 views

Preview page/post revisions without overwriting current content

Is it possible to add or update a Post/Page without it overwriting the current content that it on there? I need to make some edits to a page, but I need to have someone review it before I can publish ...
0
votes
1answer
192 views

Using jQuery .after inside loop

I have a bit of javascript that will dynamically add a static post to a loop. The script uses the jQuery 'after' method and on a static page it works beautifully but when inside the loop I don't get ...
0
votes
2answers
317 views

Sliding pages + wordpress [closed]

do you have any idea how to achieve such effect with wordpress? http://www.papajastudio.pl/ http://soulwire.co.uk/ I mean the navigation. i want to have simple cms to edit website content + such ...
0
votes
1answer
33 views

Announces with different formatting dependently on a number

I am modifying the theme TwentyEleven. In index.php there is the loop which accesses content.php template: <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', ...