Skip to main content

Questions tagged [content]

The tag has no usage guidance.

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

Remove <p> from <blockquote>

I use Classic Editor and try to remove tag <p> from <blockquote> Now I have <blockquote><p><q>Smart text.</q></p></blockquote> and I need <...
BlackStar1991's user avatar
0 votes
0 answers
44 views

Importing content but it displays that it already exists

I have been trying to import a basic, exported Wordpress content XML file. What I'm trying to do is add a blog post from one site to another. When I try to import the XML document it simply states ...
Anu's user avatar
  • 1
0 votes
1 answer
49 views

How to display breadcrumb on category?

I have a breadcrumb displayed on all content types (pages, posts, homepage etc.) - beside of category. What is the way to add category to content types, where breadcrumb is showing? This is the ...
Evgeniy's user avatar
  • 105
0 votes
0 answers
12 views

RSS Feed Customization

Is there a way to customize the output from RSS feeds from website to website? Right now, when displaying an image from a story, it chooses to show an inline photo rather than a Featured Image. Of ...
Colin Zraunig's user avatar
0 votes
0 answers
29 views

Copy Content with Images to Other Site

Wondering if anyone has come up with any creative workarounds for copying content which includes images from one site to another? I looked into it many years ago and didn't get far, but wondering if ...
Kenny J's user avatar
  • 105
0 votes
0 answers
21 views

Automatically adding some words at the end of specific line

My English not well, so I will try explain my issue and I hope everyone can understand it... My post have content like this: [URL=https://abc.com/7ab4e24c328]MSK_10th_Anniversary_1080p.mp4[/URL] (800....
Sean Blue's user avatar
1 vote
1 answer
65 views

Is it possible to create dynamic templates for block themes directly from the site editor?

For example, you can create a posts template within the site editor, but how do you make it so that the content for each respective single post displays dynamically? Here's my single post template ...
WPdummy's user avatar
  • 23
0 votes
0 answers
25 views

How to create advanced custom fields for backend content

Is there a straightforward way to create custom fields for module-based content on WordPress? Example: User Creates page Creates Page content sections through forms Row 1: Column 1 - Content A ...
Jeremy Thomas's user avatar
0 votes
1 answer
405 views

How can I retrieve the original content in a page via REST API, content that I pushed myself also via API?

I pushed some content in pure plain-text into a wordpress via the REST API. Say I push this page content: Hello. Bye. Then when I retrieve it, instead of this original content I find a property ...
Xavi Montero's user avatar
0 votes
0 answers
35 views

Content on 90% of my website looks to have disapeared

Website is www.woodslabs.ca. I was having issues with an error appearing when trying to edit pages so I reached out to my hosting company for help. After a few back and forth they were able to get ...
Mike's user avatar
  • 1
1 vote
0 answers
132 views

Replace all instances of string in page (including header and footer)

I created a small plugin, with a function to replace some strings with others. function replace_text($text) { $text = str_replace('look-for-this-string', 'replace-with-this-string', $text); $...
Kev's user avatar
  • 11
0 votes
1 answer
111 views

Add text/link next to the last word of each post

I'd like to add a custom message or a link next to the last word of all posts. Like this: This is any post of my wp blog. This is the last word of my post: last word. [text/link here] I've been using ...
Cipher's user avatar
  • 11
0 votes
1 answer
189 views

Trouble with Wordpress Gallery since update using has_block('gallery'

I've got a custom post type setup which displays a gallery below the hero. It's setup to display the first 9 images in a gallery using the following code, when one clicks the "View All Photos&...
Art in Flight's user avatar
0 votes
0 answers
49 views

Where's the Block Template Feature in WordPress?

I'm working on developing a site for one of the Institutes under our organizational umbrella, and I've run into a situation where it'd be great to have a template with some blocks already in place ...
AWarnock's user avatar
0 votes
0 answers
50 views

add_filter('the_content', 'method') does not trigger my custom method

I'm using the parse_request hook to trigger the the_content filter when you're at /sportivity-roster in the url. When I do a var_dump in the if statement where I check the constant it's value, it ...
Jan's user avatar
  • 33
0 votes
0 answers
231 views

Add text and change style to post programmatically depending on category

Can someone please let me know how to add text to posts depending on category and how to change the styling of a post depending on category ? I tried to add the function below to functions.php, but it ...
TBV Translation's user avatar
0 votes
1 answer
40 views

How to put post title or keyphrase in content on different places automatically?

I want to repeat my title/keyword in different places in my content. for example, my title is "Dog" I want to replace "Dog" everywhere I have inserted *** or any hint. how this is ...
Muhammad Imran's user avatar
0 votes
1 answer
116 views

For some time, some of my pages do not display the content anymore. Any idea where this could be coming from?

I recently worked on this website : https://semaine.com/ But since some time the content of the pages https://semaine.com/classroom/ and https://semaine.com/cinema/ are not displayed anymore. The ...
Hugo Barbé's user avatar
0 votes
1 answer
330 views

404/500 error on content images if Referer header is from another domain [closed]

Not very familiar with WordPress so I'm not sure what's causing this. Essentially, we have a few image assets stored under wp-content. When we access some assets (i.e. cmssubdomain.apex.com/wp-content/...
AnimaSola's user avatar
  • 113
2 votes
2 answers
982 views

Can we use a webservice with Wordpress?

Assuming that my site uses a database through the web service to fetch content, style and other things for my site. Can we make this connection in a way provided by the CMS? A plugin does that? Should ...
Jonathan's user avatar
0 votes
0 answers
115 views

How to separate two columns from one content on a page template?

I am just creating my first serious web project built on Wordpress and during my task (basically learning by doing) i came to a following problem. The designer wants to show two columns of text on ...
Guldur's user avatar
  • 1
0 votes
0 answers
215 views

Line break before headings (<h2>) appears from nowhere

So, in the database row i've the following html code in post_content: Solo pochi giorni fa, esattamente il 15 marzo, è stato presentato durante l'ultima edizione del SXSW Online un suggestivo ...
Monte's user avatar
  • 101
0 votes
1 answer
1k views

How to Remove HTML Elements from Post Excerpt?

I am Using the Following Code and want to remove HTML All Elements. <?php $exerpttext = substr(get_post_field('post_content', $post->ID), 0, 300); if (!empty($exerpttext)) { echo $exerpttext.'......
stepiadm's user avatar
0 votes
1 answer
30 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
321 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
0 answers
26 views

How to update wordpress content of wordpress multi-site subdomain

I am trying to copy content from one wordpress site to another wordpress site (subdomain of a multi-site). I have all of the content on the bitnami server - but don't know how to just get the ...
Heather J's user avatar
0 votes
1 answer
45 views

Is there a way to grab the current value of the editor in Gutenburg/Classic Wordpress editor? (Not the saved value of the post!)

I'm trying to make my plugin "Gutenburg - compatible". I have some issues when replacing the editors contents. Before I could just change value by using #content but with Gutenburg there's ...
bestprogrammerintheworld's user avatar
0 votes
0 answers
353 views

Multisite - Cloning CPT pages + content (including ACF Flexible Content) from site to site

I wondered if anyone had any WordPress Multisite knowledge where I need to be able to move pages and content from one site to another? A little bit of background, I've done this previously using the '...
M. Ferguson's user avatar
0 votes
0 answers
21 views

Upgrading to WP 5+ with block content - Export & Import Page Content

I'm upgrading a pre-Wordpress 5.0 site to the latest WP version using blocks. I created a staging site and went through all the pages/posts and converted the content into blocks. Now I need to ...
Jon's user avatar
  • 325
0 votes
0 answers
109 views

WordPress Guternberg Content For React Native

I am creating react native mobile app first time. I use WordPress as a WordPress service. Everything is OK excerpt WordPress content from api. As you know, WordPress response Guternberg content block ...
Por's user avatar
  • 382
0 votes
1 answer
983 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
586 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
335 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
1 vote
0 answers
80 views

Error when adding excerpt to the content through functions.php

I am trying to add the excerpt from a specific post to the content. function add_2_the_content( $content ) { if (is_front_page()){ $custom_content = get_the_excerpt('some_id_number'); } $...
Leadhood's user avatar
0 votes
0 answers
36 views

My website is showing today's date instead of published date since db migration to a new wordpress

I exported my database and content to a new Wordpress. Everything works fine, except that every post is showing under today's date, instead of the published date like it should be (the actual ...
effetk's user avatar
  • 1
0 votes
0 answers
19 views

Related post not showing table of content

I have squaretype themes and this themes use built in table of content. My question is how to change related post to show excerpt not table of content words?
Ary Bagus Octora's user avatar
0 votes
1 answer
47 views

Displaying different content depending on variable

I'm making a web app that shows information about a type of truck - if the user wants to view their content in metric or imperial they click the respective box in the header - I want to change the ...
Caolán Maguire's user avatar
2 votes
1 answer
383 views

Capitalize All Titles and Headlines in Chicago Style

I want to capitalize all titles and headlines on my blog according to the Chicago Manual of Style. Since this is a very tedious and time consuming task to do it manually, I thought there must be ...
TheKidsWantDjent's user avatar
0 votes
0 answers
43 views

How to use multiple (or array) values in $content of shortcode?

I have a shortcode that fetches some values, first_name, last_name and email from a remote database. I'm trying to write a shortcode that will allow me to print 2 or more of those values within output ...
Daveh0's user avatar
  • 191
0 votes
1 answer
53 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
3 votes
1 answer
8k views

Allowing SVG uploads in media uploader without plug-in

I have previously managed to utilise this block of code within my functions.php file to enable and create thumbnails for SVGs that are uploaded to my site: // ALLOW SVG function ...
Jason Is My Name's user avatar
0 votes
1 answer
226 views

How To Watermark Audio

Does anyone know a way or plugin that will help me to automatically watermark any audio uploaded in the wordpress media library
Cinnia Entertainment's user avatar
0 votes
1 answer
92 views

How can I add a custom Javascript snippet to display my feedback in footer?

I have the following Javascript snippet: <script type="text/javascript" src="\<script type="text/javascript" src="//www.auctionnudge.com/feed/feedback/js/theme/...
Chrome123's user avatar
0 votes
1 answer
37 views

How to get unmodified post content?

How do you get the unmodified post content? It seems WordPress modifies the post content. It changes the HTML by adding or removing from it. This post is different from this post: Get WordPress post ...
1.21 gigawatts's user avatar
0 votes
0 answers
16 views

I have inserted a post's content in homepage.php by the post-id. The font isn't matching with the theme. How do I change font of this content?

The code added to get the specific post's content is as below. How can I style this content now? if ( is_front_page()){ $my_postid = 30;// Here 30 is my page id $content_post = get_post($...
Sanjay's user avatar
  • 1
0 votes
0 answers
27 views

Images over HTTPS endless issues - mixed content

I've installed a SSL certificate on my site : https://whiskas.co.za and now I'm getting the mixed content issues, I've tried most of the stuff found on the www but no go :-( Any help would be ...
jtvdw's user avatar
  • 3
1 vote
0 answers
67 views

How to filter post content and force every link (<a>) made in blocks to return urldecode(<a>) with readable value?

Will really appreciate your help with something. I'm using non English letters in my URL slugs. So every time I add an internal or external link with non English letters to my post (via blocks editor ...
Victor's user avatar
  • 25
2 votes
2 answers
980 views

Filter post_content before loading in Gutenberg editor

I'm trying to manipulate the editor content(blocks) before it's shown in the editor. So ideally I would perform a search and replace and the editor will have a modified version of blocks, but will not ...
Andrei Surdu's user avatar
0 votes
1 answer
220 views

Tool to highlight text in WordPress page and provide additional text on hover

I'm looking for a tool within WordPress to provide genius.com/hypothes.is style annotations to page content. Like Modern Footnotes, a plugin that displays additional text on hover - but over ...
balleyne's user avatar
  • 101
0 votes
1 answer
63 views

How can I change page content for good once a button is pressed?

I am building a verification website that utilises QR codes which once scanned show a page which says that the product is genuine. I want to add a "claim listing" button to the bottom of the page ...
Daniel Proctor's user avatar

1
2 3 4 5
11