Questions tagged [content]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Benefits to using semantic HTML in post content? [closed]

I've been reading up on semantic HTML as a means of improving accessibility and SEO, but I'm still learning about the implications of semantic HTML. One question I have is whether there's any point to ...
ayyyT5's user avatar
  • 3
0 votes
2 answers
274 views

Show only the first 300 words / 50 lines of blog posts for non registered users

Is it possible to show ONLY the first 300 words (or even 50 lines) of every blog post for anonymous users? Instead of show the whole article on the page? And after registration all the post would show....
Arquera's user avatar
0 votes
1 answer
690 views

Getting Page Content Using Shortcode

I have a menu page that contains dishes (food) for the week and I am trying to display that by inserting the shortcode on home page. Nothing shows. I'm not sure how to use return and get the content. ...
Harold Aldersen's user avatar
0 votes
1 answer
456 views

How to reload the shortcode content when the database is changing

I use Wordpress plugin: snippets to show some data in database. Everything is OK, however, when I change the content in the database. After that I refresh many time in the page. And the content is not ...
ho quoc dung's user avatar
0 votes
1 answer
279 views

HTML formatting issues when switching between editor tabs

In the WordPress admin panel, when switching between the "text" and "visual editor" tabs, my HTML formatting is completely lost. New lines are removed, and paragraph tags are shown ...
Charles's user avatar
  • 11
0 votes
1 answer
38 views

plugin wraps the entire content

I have made a small plugin which grabs the post from another blog of mine, and I render it using a shortcode: <div class="blog__grid"> <?php // If there are ...
loliki's user avatar
  • 185
0 votes
1 answer
389 views

Insert menu with a custom walker into page / post body using shortcode?

I'm trying to add a menu using a custom walker class into a page or post body and settled on using a shortcode. I don't have to use a shortcode, but I do have to embed the menu into the central ...
rambillo's user avatar
  • 357
0 votes
1 answer
203 views

remove string: 'custom content...' from every page

I'm not quite sure how this came about, but every page on my site has the text 'custom content...' appended to the end of the body. The string appears within <p> tags on the frontend. I've ...
machump's user avatar
  • 123
0 votes
1 answer
111 views

How to remove massive link in WordPress content

I would like to delete certain link that I have in the content of all the entries, for example : <a href="https://www.sitio.com">link contenido</a> Change it to: link contenido Or ...
juan's user avatar
  • 1
0 votes
1 answer
2k views

Split the_content into two parts

I want to split the content of a post into two parts. The First part is in an <strong>-tag, it is like a excerpt and in the second part i want to display the rest of the content. But I don‘t ...
F. Wissink's user avatar
0 votes
1 answer
1k views

Page content not visible in backend

I was asked to take a look at a WordPress website. The front page had a lot of content on it, that I wanted to edit, but when I opened up the page editor, there was nothing at all in the content field....
ReddaJoppe's user avatar
0 votes
1 answer
51 views

If I use a static page-slug.php for a page, is the database still queried?

I wonder how to display a static page in order to increase the page load a little bit: The first option is to put the content in the database (via the Admin GUI), the second option is to create a page-...
manifestor's user avatar
0 votes
1 answer
92 views

Delete/Replace words from X to Y in post content

I am looking for a way to search and replace some words in my database. I have many posts on one of my blog and i want to replace words using regexes. before publishing, I marked every place I wish ...
Godwin Alex Ogbonda's user avatar
0 votes
1 answer
454 views

content disappearing minutes after it's published

I'm with a very serious problem. Some information disappears after being published. Not exactly at the moment, but it shows up for a few minutes and then disappears. This does not happen with ...
Rick Alvarez's user avatar
0 votes
1 answer
3k views

add share buttons above my posts without plugins

I'm trying to install share buttons above the articles of my site and I found this piece of code. Starting with, my problem is that the code is displayed at the end of the articles. I would rather ...
Frenchy35's user avatar
0 votes
1 answer
28 views

Where to store reusable content that is not a page

I want to store content like an address block or opening times, that will be displayed at different locations across the site. The website owner should be able to edit this content. What's the best ...
Arne's user avatar
  • 103
0 votes
1 answer
25 views

Body-only page for a 2-page form [closed]

I'd like to know how does it work. I'm currently done on the questions part of the form and like to do a windows.open() function for the answers. Problem is, if I put the URL of the answer page (...
Kyle's user avatar
  • 1
0 votes
1 answer
850 views

How to turn each phone number within the $content to a telephone link?

I am working on a webpage that lists all the access numbers our customers ask for. What I am trying to do is turn all the text phone numbers into telephone links through a php function rather than ...
Fabian Amran's user avatar
0 votes
1 answer
1k views

the_content() Not Grabbing All Content

I'm having a weird issue where Wordpress is cutting off and not grabbing all of the content from pages or posts. Examples can be seen on the following pages: http://gripjunkies.com/about/ http://...
Quinton Chester's user avatar
0 votes
1 answer
96 views

Additional content every x comments

Do you have any idea of is it possible to add some content every let’s say 5 comments in WordPress? I could use “more fields” plugin but it would create content after each and every comment. Something ...
Michal K's user avatar
0 votes
1 answer
371 views

Display an image based on field value

I am working in Wordpress trying to customize post layouts and am having trouble with a bit of php I've tried implementing. I am trying to display an image in the post based on the value in a ...
IgetTestT's user avatar
0 votes
1 answer
102 views

How is WordPress changing the content markup?

In my post there is Visual and Text tabs. I've formatted some content and in the text tab it looks like this: <strong>The Mission Statement –</strong> The following is a mission ...
1.21 gigawatts's user avatar
0 votes
2 answers
1k views

Adding Custom CSS with PHP

I am creating a WordPress plugin to help people protect their content from being copied. There are many plugins to protect content from being copied when JavaScript is on, but no plugins which protect ...
Arsh Arora's user avatar
0 votes
3 answers
244 views

Adding Template Post Content

I've tried searching for this using various terminology, but I always end up at questions pertaining to the php template files. That's not what I'm looking for, so I'm asking a new question. I ...
Mike's user avatar
  • 244
0 votes
1 answer
313 views

A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom

Everything was working well, but somebody wrote a post with the following inside: <iframe blablabla (a video) </iframe> <div style="clear: both; height: 3px; width: 592px;"></div>...
chelder's user avatar
  • 137
0 votes
2 answers
1k views

Get post content from outside the loop with plugin shortcode usability

This is great for showing just the raw content... Get post content from outside the loop But i'd also like to apply shortcodes from various plugins to my content to affect the content. What would I ...
Pete's user avatar
  • 998
0 votes
1 answer
22 views

Changing theme removes page content in dashboard's post main editor

My client's old site used some theme X. I created a child theme Y of some parent commercial theme Z. When viewing the admin page of a certain page while old theme X is activated, I see its content in ...
drake035's user avatar
  • 1,147
0 votes
1 answer
442 views

append one page content into another

I need to append the content of one page into this one. I have tried to use a plugin which is very easy to use but doesn't work in my case. Then I found following code: <?php $recent = new ...
user avatar
0 votes
1 answer
174 views

Different site different div content - Multisite

I have created numbers of websites. They are www.example.com, subsite1.example.com, subsite2.example.com and subsite3.example.com. I want to make a div that show different content. The example below ...
Jornes's user avatar
  • 743
0 votes
1 answer
496 views

How should I structure complex content hierarchies?

I am pretty new to WP and I have not had to deal with any overly complex content structures as of yet. Until now. I'm trying to figure out the right mix of Custom Post Types, Taxonomies, Pages, etc. ...
Mattaton's user avatar
  • 367
0 votes
1 answer
56 views

Backing up Wordpress database and files

I've tried a few third party plugins for backing up my site, with some working well and others not so much, so I'm trying out backing up the site manually. Is there anything I'm missing here or is ...
Jay's user avatar
  • 1
0 votes
1 answer
100 views

Page for logged in user to Edit/Delete their own content?

Im new to WordPress, I have been working with Drupal for about 6 years and recently switched over to WP, couldnt be happier :) I have a question that I need some assistance with and was hoping that ...
pouyar's user avatar
  • 9
0 votes
1 answer
2k 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(); $...
HannesH's user avatar
  • 75
0 votes
1 answer
432 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. ...
Joel Rosen's user avatar
0 votes
1 answer
40 views

Can't save WordPress post with "/etc/" in it

In my self-hosted WordPress site, if I create a post with "/etc/" (without quotes) in it anywhere, I get a 404 Not Found when I save the post. Wrap it in <pre> tags, or even escaping the ...
Ace's user avatar
  • 103
0 votes
1 answer
106 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 ...
ST'''s user avatar
  • 15
0 votes
1 answer
26 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 (strlen(...
Riffaz Starr's user avatar
0 votes
1 answer
43 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 .= ...
Genethic's user avatar
0 votes
1 answer
65 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 ...
winresh24's user avatar
  • 103
0 votes
1 answer
154 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 post ...
ccharms's user avatar
0 votes
1 answer
47 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 ...
Will's user avatar
  • 352
0 votes
2 answers
228 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 ...
user36177's user avatar
0 votes
1 answer
35 views

Hide parts of the post content after typing it's name or searching it by category

Code "nohome" worked for displaying wanted (hided'n'waiting) content on home page (just postname and image) How it could be adjusted or modified to make the same after name of post has been typed ...
Jacob's user avatar
  • 1
0 votes
2 answers
5k 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 ...
Zoolander's user avatar
  • 137
0 votes
1 answer
1k views

Hide parts of the post content on the home page

I have a post that contains a video (or a slider) and some text. Is it possible to hide the text on the home page, but still display the rest? How would I do that?
Anabele Rosemary's user avatar
0 votes
1 answer
124 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 ...
shngrdnr's user avatar
0 votes
1 answer
110 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 ...
user avatar
0 votes
1 answer
590 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. ...
krikab's user avatar
  • 1
0 votes
1 answer
4k 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 ...
mscgl's user avatar
  • 48
0 votes
1 answer
120 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 $...
Luca's user avatar
  • 135

1
4 5
6
7 8
11