Questions tagged [content]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
23 views

Remove pre and code tags from WordPress

WordPress has added both <pre> and <code> tags to my PHP embedded in a post. Here's an example <pre><code>register_taxonomy( 'Books', 'post', array( 'label' =&gt; __(...
0
votes
0answers
15 views

Two different inner shortcode under shortcodes or multiple nesting of inner shortcodes

<div class="eternal"> <div class="one"> [shortcode]Some text 1[/shortcode] [shortcode]Some text 2[/shortcode] [shortcode]Some text 3[/shortcode] [shortcode]...
-1
votes
0answers
7 views

How to change all existing post title and content' color

A customer has a Wordpress blog. Last week, it looked normal. Now, suddenly all the post title and content's font color changed into white. Not sure why. Still using the same theme, though. This ...
0
votes
1answer
21 views

Why does a published post only displays the title and not the content in the site? [closed]

I published a post last January 3 and it went out fine. Now, I published a post again but the site only displays the title and not the content. This is the first time that this happened to me. Do you ...
0
votes
0answers
11 views

Post content is escaped when visual editor is turned off

When visual editor is turned off, then $post->post_content is escaped. With visual editor turned on, the exact post content is obtained as saved. When visual editor is ON, output of $post->...
0
votes
1answer
16 views

Printing first line of content in wordpress

I'm trying to print just the first line of content on wordpress post: $lines=the_content(); $lines=explode("\n", $string); echo $lines['0']; But it doesn't work. I must say I have looked everywhere, ...
0
votes
1answer
29 views

How to Create custom xml file for demo content for custom theme?

I am created custom Wordpress theme. Now i need to create functionality for demo content import such as Pages, Posts, Widgets, media and menu. My question for demo content is possible for above ...
0
votes
1answer
32 views

What are the advantages/disadvantages of using jQuery DOM manipulation as opposed to PHP DOM manipulation?

I'm working on a plugin that takes $content for a post and alters some of the HTML. Seems there are two common ways to accomplish this in WordPress - using jQuery or using PHP's DOMDocument. I'm ...
0
votes
0answers
12 views

WordPress plugin shortcode public function

I use reaction plugin. I want to change plugin position not after post content by adding shortcode public function add_public_post_view( $content ) { global $emojis, $votes, $post; ...
0
votes
1answer
28 views

Content disappears when searching with Search & Filter plugin

I manage a website in which the plugin Search & Filter is being used to go through the content by visitors. With a particular search query, the content appears correctly, soon to disappear ...
1
vote
0answers
58 views

Gutenberg First Block on Page Conditional?

I have been building some custom Gutenberg blocks using ACF PRO. I have a block that I have created where I want to show the title of the page in that block, BUT only if it is the first block on the ...
0
votes
2answers
49 views

plugings request url is the old url

I have changed my WordPress site url in wp-config.php by adding this two lines: define( 'WP_HOME', 'http:// $new url' ); define( 'WP_SITEURL', 'http:// $new url' ); almost everything working fine, ...
0
votes
0answers
12 views

Add footer inside the content of pages

I currently have a page where my background is just a gradient color from bottom to top. With the header there is a option : Basic 1 - inside header. This puts the header together with the content ...
0
votes
0answers
15 views

How to automatic specify images in content automatically link

I have a series of photos in the post content, that I want to automatically link to that (link to the photo to see their larger image) These images have a specific class that can only be applied to ...
1
vote
1answer
21 views

How to retrieve text only from a post using WP CLI?

I have the post ids and urls. I need to extract the post content make some modifications and update again. I have more than 2,000 posts hence I would like to do it using WP CLI and not manually. Can I ...
0
votes
1answer
100 views

Add the same content to multiple pages

I have a website with over 500 pages. Dont ask why but none of these pages have any content in them. I have created a page layout to be added as a single wp bakery block and want to add this same ...
0
votes
1answer
33 views

Before & After Content - After Content directly below Before Content when using require_once

I've encountered an issue that I can't seem to figure out. I am using require_once to place content before and after the page content on my homepage. The before content works perfectly and displays ...
0
votes
0answers
14 views

Load table content from one page into another

I am creating a website with different member levels, for every member level there is a page which only that member category can see. (This is already setup with a plugin) I want to create a main ...
0
votes
1answer
42 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 ...
0
votes
0answers
22 views

WordPress Starter Content: can't access the created posts

I'm having a big pain with starter content feature of Wordpress. At the moment I'm using the hook customize_save_after to get the posts, using the normal function I use to get posts get_posts. It's ...
1
vote
0answers
23 views

Control Content On Non-Blog Pages

I'm new to WordPress, trying to learn it's capabilities. My Goal My goal is to make a normal website but have it's content (text and images) be adjustable by the user / client, managed content. An ...
0
votes
1answer
23 views

Custom slugs for Each Tab

I have a website for musicians information. The information is divided to few different subjects, using tabs - 'General', 'Songs', 'Albums' and 'Videos. <?php if($tab_story){?> <li role="...
0
votes
0answers
73 views

RSS media:content image to Featured Image

I can see lots of plugins and solutions for embedding a featured image into an RSS feed, but what I want to do is take an image that has been embedded in a feed and make it a featured image when the ...
-2
votes
1answer
29 views

How do I edit the data/content inside a wordpress theme?

Im new to word-press, I have purchased a theme, and imported it with its demo data, how do I now edit the actual content of the website, and replace the demo data? I have tried going on the 'Pages' ...
0
votes
1answer
28 views

Using Elementor to get dynamic content for wordpress on a predefined theme

Lets say i want to put posts on a page in an elementor page, but these posts should have a specific tag to show up here, I.E pulling posts dynamically from posts to a page according to a tag, or a ...
0
votes
1answer
27 views

Problems with setting up a subdomain to serve images and scripts

I'm trying to optimize a site and the last thing I want to do is to serve static content with a subdomain that will be without cookies, and I have a problem with that. I tried a couple of things to ...
-1
votes
1answer
38 views

SQL Query : how copy all tags of post into their post content in wordpress by sql query

I want to copy/move all tags of a post into posts content, as text form not in a link form. For example: A post has: a title in title field, some content in content field (like: a ...
0
votes
1answer
29 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 ...
0
votes
0answers
29 views

Thumbnail and price not showing on related products section

Well, I'm trying to create a module with the related products I have in my shop. My template has a file in the route /theme-name/woocommerce/single-product/related.php. In this we can see some code of ...
0
votes
0answers
28 views

Content export, reinstall and content import

I run a WordPress site and I need to change the theme to a new, faster one. However, when I install the new theme and Import demo content, the site doesn't present well at all. I'm thinking of a way ...
0
votes
0answers
41 views

Front page is not updating content

I have emergency problem. My home page has static page set for front page and post page is blog. I am using the WPBakery Page Builder plugin to design and create content. But somehow I'm unable to ...
0
votes
0answers
15 views

How is it possible to create Multi part sections where people can answer or comment or vote on various parts of a page's content as given example?

How is it possible to create Multi part sections where people can answer or comment on various parts of a page's content as given example? Using this as a reference example (can attach screenshot if ...
0
votes
1answer
116 views

Display Full Content Instead of Excerpt

I want to display the full page content rather than the excerpt in my child theme. If I make the changes to the parent, they appear on the site. If changes are made to same exact file in child, they ...
0
votes
1answer
60 views

Trying to modify content.php

I am trying to tweak the bootstrap basic theme so that it shows excerpts. It does it when using search but not by default. I am trying to figure out what I need to change on the content.php file. ...
0
votes
0answers
26 views

Pass form inputs to page content

is it possible to pass form input to page content? In a WordPress Multisite I’d like, when a user register and create his own website, to make him compile a form with the text and the photos that will ...
0
votes
1answer
22 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 ...
0
votes
0answers
17 views

Export select content to rss feed format

I have a friend who wants to use some of my content in his email newsletter. He wants the content in a RSS feed. I would like some suggestions on how I can do this: he has picked three different ...
0
votes
0answers
15 views

How do I get a reference to the HTML memory buffer while the page is being constructed?

I want to view & update the buffer with html "<head>" data section in it, after the head has been generated. Problem statement: I have created some shortcodes in a plug-in which, if ...
0
votes
0answers
70 views

How to parse any content which was added after the working out filter 'the_content'

How to parse any content which was added after the working out filter 'the_content'? For example I have html structure of the simple page that i was created via Worpdress Admin Dashboard -> Pages -> ...
0
votes
1answer
12 views

mixed content missing from wordpress media

Hello Can someone point me to right direction about how to fix this issue please? I tried it with really simple ssl, didn't work. Image is no longer in wordpress media and it has been deleted. (...
0
votes
1answer
29 views

Please tell how to stop the category from showing up on posts

Please tell me how to remove the category hence, it does not show up on posts. my content.php file is given below...which contains the code for showing up meta. but I am not able to figure out the ...
0
votes
0answers
33 views

How to get Post sidebar & footer including html like get_the_content() which only gets content section?

I want to get sidebar & footer including html of current post. Then I want to check a "string" inside sidebar & footer. If "string" exits, I want to enqueue a custom script. If anyone knows ...
0
votes
3answers
813 views

How to just show first line of content

is it possible to show only the first line of content <?php the_content(); ?> or alternative only content between <b>text</b>?
0
votes
0answers
25 views

How do WordPress themes work in relation to content?

Premise: I have experience with WordPress only from an admin's perspective point, not custom themes, so forgive the that the question is very general. I am well aware that WordPress stores content in ...
0
votes
2answers
23 views

Open content directory help!

I just found out tha I have a wp-content directory that is open where you can see all of my files that I have on mysite- pdf's, jpgs, etc. Files that are meant to be for members only as well....all ...
0
votes
1answer
49 views

Replace Text with hyperlinks

I would like to replace few words in the content of the posts. For example. Original: Here is my test string. Which Need to Replace First Test word in the string. Excepted String: Here is my <...
0
votes
1answer
415 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 ...
0
votes
1answer
23 views

Copying content from my other websites

I am currently working in a website for my company to clean up and create new modules. In this company website we share news/alerts or updates on our industry or regarding to our company, we can ...
0
votes
1answer
356 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....
0
votes
1answer
30 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-...