-1
votes
1answer
26 views

How to get some information from the_content [closed]

Hello in index loop 3 lastest post and i want to take only a bit o text and first photo or youtube - and here is the problem, because i can use the_excerpt or i can use get_post_meta to take text, to ...
0
votes
0answers
45 views

Set padding for all content except images and few more elements

I want to have left and right 10px padding for all content inside post/page, but not for images, videos, galleries, tweets, pre, hr and few more. So that elements must be full width. So I set: ...
0
votes
0answers
50 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 ...
2
votes
1answer
778 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 ...
1
vote
1answer
610 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
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 ...