Questions tagged [content]

The tag has no usage guidance.

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

php dynamic content inside shortcode

I've got custom field added to my woocommerce page in functions.php. I want to add on a product list page an shortcode with dynamic content from that custom field - it will be url. I've added ...
0
votes
0answers
22 views

Translate portfolio arrow in german [closed]

I use the Portofolio for my WordPress website. However, the navigation arrows are displayed in English, which I would like to change to German. Does anyone know if this is possible? Update: I have ...
0
votes
2answers
53 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....
0
votes
0answers
18 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 ...
0
votes
0answers
14 views

Limiting the number of images resized during upload

I'm troubleshooting issues with image uploading and noticed that each imaged uploaded is making literally 10 sizes of varying proportion. I don't understand why. Why are there so many resized versions ...
0
votes
0answers
73 views

Save a custom field in a custom table when saving a draft

I created a custom metabox with a custom field inside. I attach code. add_action( 'admin_menu', 'mtb_add_metabox' ); function mtb_add_metabox() { add_meta_box( 'mtb_metabox', '...
0
votes
1answer
26 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 ...
0
votes
0answers
32 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 '...
0
votes
0answers
12 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 ...
0
votes
0answers
26 views

How do I display/pull posts from subdomains to the landing page (domain) in WordPress Multi-site?

I have 8 sites in my multi-site network: Group Landing site (domain) Group 1 site (subdomain 1) Group 2 site (subdomain 2) Group 3 site (subdomain 3) Group 4 site (subdomain 4) Group 5 site (...
0
votes
0answers
40 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 ...
0
votes
1answer
22 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. ...
0
votes
1answer
17 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 ...
0
votes
1answer
44 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 ...
0
votes
0answers
14 views

How to get domain.com/some-random-path to run a bit of code and display the result?

I'm porting a site from Drupal 7 to WordPress, and am kind of a WP newbie. In Drupal, I was very used to using the menu system to set up various paths that, when accessed, would run some code (that I ...
0
votes
0answers
35 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'); } $...
0
votes
0answers
21 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 ...
0
votes
0answers
10 views

Can I start adding posts, pages and photos to my website before my domaine is transferred?

Right now I have a free .wordpress.com domain, but I'm transferring over a domain name from a previous host (it takes a few days apparently). I would like to start working on uploading content ASAP. ...
0
votes
0answers
33 views

Get separate blocks content for each block inside InnerBlocks

I would like to custom output InnerBlocks component blocks, differently than Innerblocks.Content does. In order to do that, I would need access to blocks inside InnerBlocks and their content. I am ...
0
votes
0answers
17 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?
0
votes
1answer
18 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 ...
2
votes
1answer
102 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 ...
0
votes
0answers
23 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 ...
0
votes
1answer
22 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
94 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
0
votes
1answer
45 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/...
0
votes
1answer
19 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 ...
0
votes
0answers
12 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($...
0
votes
0answers
20 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 ...
1
vote
0answers
22 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 ...
0
votes
1answer
333 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 ...
0
votes
1answer
80 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 ...
0
votes
1answer
10 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 ...
0
votes
1answer
47 views

How to show content in the body with my plugin (only in frontend not backend)?

I have always an error with my plugin code and I don't get it: this is the error Parse error: syntax error, unexpected 'stoerer' (T_STRING), expecting ';' or ',' in /opt/lampp/htdocs/...
0
votes
1answer
688 views

Custom CSS for full post vs. excerpt (Content Options)

Is there a way activate "Full Post" via Custom CSS or any other way? Right now I am stuck with Excerpts on the Homepage and my Theme Customizer > is missing Content Options Here below is what my ...
1
vote
1answer
179 views

How to loop for every result found in the_content() when using the search query?

im doing a custom search result page with function that extract from the_content() some words before and after the search query. (Eg ?s=cool result=[...sterday was cool and the par...] It's working ...
1
vote
1answer
2k views

Dynamic content based on a URL parameter

So, I'm doing some wordpress development studies and classes, and now I got an project to work on, and need to get the following task done: I'm doing a telecom website. The site has a page called "Buy"...
0
votes
0answers
70 views

how to use substr with get_the_content()

I'm setting og:description programmatically like this: $description = apply_filters( 'the_content', get_the_content() ); This works fine. However, the $description contains some superfluous ...
0
votes
0answers
235 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; __(...
1
vote
1answer
300 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]...
0
votes
1answer
30 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
1answer
40 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
567 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
133 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
1answer
84 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
1answer
1k 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 ...
2
votes
3answers
211 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, ...
1
vote
1answer
45 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
1k 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 ...

1
2 3 4 5
11