The tag has no wiki summary.

learn more… | top users | synonyms

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
34 views

How to know if user choose to show full post or excerpt?

I've seen there is a setting to choose whether to see full posts or excerpts on feed. However I'm using a theme that doesn't seem to support this functionality (it always show the full post). For this ...
1
vote
1answer
104 views

Retrieve a specific number of words from post_Content

I would to retrieve a specific number of words from post_content, but I don't want the tags stripped. I was using wp_trim_words() before I realised that all my images are being removed, so I need an ...
1
vote
1answer
569 views

Which template holds what to display when search returns nothing

Question is clear I guess. Normally, which template is returned when no search results are found. I would say search.php, but my parent theme's (twenty thirteen) search.php looks like this (slightly ...
1
vote
1answer
72 views

Next and/or previous post content

How can I show the content in next or previous post? For example, I use this to display the next post link with title: <div class="alignleftfp"> <?php next_post_link('%link', ...
1
vote
1answer
121 views

Hiding posts and pages in panel

I found out this code and works ok for hide pages in admin page listing, but I need someway to do this to thousand pages: add_action( 'pre_get_posts' ,'hide_pages_87ff65f5f' ); function ...
1
vote
1answer
1k views

Get the content inside shortcode and apply external function to it?

function t_shortcode($atts, $content = null){ $lang = strtolower($atts['lang']); $content = "<div id='translator' class='translate_".$lang."'>".$content."</div>"; if($lang == ...
1
vote
1answer
396 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 ...
1
vote
1answer
289 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
162 views

Hardening wordpress: wp-content file permissions?

I'm writing a script to automatically check file permissions in all wordpress installations on a server. This document http://codex.wordpress.org/Hardening_WordPress is unclear on a certain point: ...
1
vote
1answer
275 views

Display category description instead of “nothing found” page

I'm using Wordpress 3.8.1 with the theme twenty fourteen. Unfortunately , when you click on a category with no post assigned to it for now , it displays a not found page. I've tried to create a ...
1
vote
1answer
400 views

How to move wp-content (or uploads) outside of the Wordpress directory

I am trying to move the wp-content directory outside of the wordpress directory and hitting all kinds of weird problems. Even though ...
1
vote
2answers
222 views

Unautop / Sanitize content added to a post through a plugin

I am using the SimpleReach plugin that adds some content to every post using the content hook. The content that is being added is <!-- SimpleReach Slide Plugin Version: {{srslide_plugin_version}} ...
1
vote
2answers
429 views

Make WordPress size and name images for Retina.js

I'm a huge fan of the way retina.js works for high pixel density displays. Essentially, when it's loading image assets (via <img> or css image) it will check if there's a @2x suffix version of ...
1
vote
1answer
84 views

How can I automatically insert the page content as the title?

I have a custom post type with no Title field. These are short status messages, where only the content matters. The RSS feed and permalink display the title as Auto Draft, which is not very useful. ...
1
vote
1answer
445 views

Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import - How?

Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import - How? Is there an easy quick way to do this? To delete all Pages, Posts, Comments and stuff that got imported? Or ...
1
vote
1answer
1k views

Split the content of the_content();

I want the content before the <!--more--> tag in one column and the rest in another column (single.php) only. I don't want to use plug-ins where I would need to edit all the posts to get it as ...
1
vote
1answer
459 views

is there a way to show the the post title after the image?

Trying to show the post title after the image in the main blog page and single page, I have tried to edit the content.php but unable to achive the result I need, which is basiscally IMAGE TITLE META ...
1
vote
2answers
304 views

Adding default post content for category

I'm trying to add some default content to my posts using this code in my functions.php: add_filter( 'default_content', 'my_editor_content' ); function my_editor_content( $content ) { $content = "My ...
1
vote
1answer
299 views

How to add text to comment form #content textarea?

I have a plugin that does validation on user submitted comments. When validation fails, I want to redirect them back to the comment form, and have their comment still appear in the comment box, so ...
1
vote
1answer
129 views

How to get rid of shortcodes in post content once and for all

I changed theme/plugin now the post content still display shortcodes. There are some tips around on hiding them, but everytime I use some content functions, the shortcodes shows up again. Also, my ...
1
vote
1answer
119 views

Best way to save horoscope data

I'm workin on a website that's goin to have two horoscope sections: The normal zodiac - Updated weekly The chinese horoscope - Updated yearly The Normal Zodiac This section will have pages for ...
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?
1
vote
1answer
639 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(), ...
1
vote
2answers
799 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 ...
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
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
342 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
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 ...
1
vote
1answer
782 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
vote
0answers
38 views

How can you use one database with multisite

I have two separate wordpress installations and two different domains. I am using one database with table prefixes. It works great but when I enter my content on one site it isn't reflected on the ...
1
vote
0answers
81 views

wp_insert_post iframe missing

In my install, I used one custom page. Here I put one text field and the fck editor. This is for the title and the content. I need to insert this into a page. I used the following code $my_post = ...
1
vote
1answer
120 views

Saving Custom Field Data before Publish

When creating a page or a post WordPress lets the content (title, body, featured image) be saved when using Ctrl + S. The Custom Fields do not save in the same way (in this case I'm using Advanced ...
1
vote
1answer
123 views

Hide content editor for posts after approriate date

I am tuning my new site and i what to disable Content Editor for post created after date X, but for posts that created before that date Content Editor must be on its place.
1
vote
0answers
51 views

Retrieve image from content, assign it as a featured, and then remove it from the content

I am trying to grab the first image from the content and use as featured image, then remove the that image from the content. I found the plugin get the image, but it doesn't save image on the post, ...
1
vote
1answer
60 views

Show only posts with images and a fixed amount of posts

I found this code online. Its a code that only shows posts with images inside. Now, the problem is that if you set Wordpress to show 50 posts, this code shows the posts with the images, but also ...
1
vote
0answers
42 views

Show image on the left and content on the right using ul li

Well im looking for a way to do this. In the index to show each post, with the "thumb" on the left and the content of the right using ul li to do so.(http://ae.tutsplus.com/ for example) So far i ...
1
vote
1answer
23 views

What is the precendence of item types within WordPress

I recently stumbled across an issue on a site that uses the following URL structure; /%postname%/%post_id%/ An old blog entry had the URL www.mysite.com/my-blog-post/1918/ Since that entry was ...
0
votes
4answers
539 views

How do I display an image before the first post of the loop when I'm using get_template_part?

I have used $count before, but never run into this problem. I cannot get it to work. I have limited php background, so please be patient with me! Here is the $count setup code: <?php $count = ...
0
votes
3answers
758 views

How do I find PHP file that contains content of my page?

Let's say I have created a page in admin dashboard and put some content in it. How I can find PHP file in my hosting file manager that contains that content?
0
votes
2answers
183 views

Wordpress page content outside Wordpress

I have a strange request. Is it possible to load the content of a Wordpress page in a normal PHP page? For example I want to display the content of the wordpress page 4 in a PHP page that is on the ...
0
votes
3answers
3k views

Host wp-content on other domain, much like a CDN

Would it be possible to host wp-content on another domain, so that all the uploads and images would go and load from there? If so, how would I go about configuring wordpress to do this, preferably ...
0
votes
2answers
932 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 ...
0
votes
1answer
104 views

Problem with content - not loading

So, this is my problem... Everything in my wordpress website is up and running, except when I get into a post and the content simply doesn't load. Everything else does, except for the post content. ...
0
votes
3answers
294 views

How can I return shortcode output to the top of the content?

I have a shortcode called update which is used as follows [update title='' date=''] this is some update, etc. etc. 2 paragraphs or more [/update] This outputs some html that wrap the title, date ...
0
votes
1answer
167 views

Reapproval for edits and deletion after post is published

I regularly have guest authors who post one or more articles on a non specific schedule. So I provide them with permanent contributor accounts to avoid the hassle of making them accounts and deleting ...
0
votes
1answer
103 views

Take excerpt of the content of the post and send it as the title to create new post

Explaining my goal: I would create the title by taking the first words of the post content. Ex: In the Admin interface would be the title field blank and the first 10 words of content would be sent as ...
0
votes
1answer
771 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.
0
votes
2answers
612 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
2answers
374 views

Content not shown on some older browsers and mobile devices (SGS3)

I'm fronting an issue with my newly created website. I'm using Wordpress 3.8 and a custom child theme (Twenty Fourteen). I've seen a problem, where some mobile phones (like the SGS3) and some older ...