What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Questions tagged [content]

The tag has no usage guidance.

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

How to Add Content Above Sidebar

I am trying to add a block of clickable photos above my sidebar, similar to a heading. I can't quite figure out how to do it. I have looked around in my Widgets with no luck. barbellsandblessings.com ...
0
votes
0answers
16 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
20 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 ...
0
votes
1answer
32 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
0answers
17 views

How to share widget content within a custom sidebar across a Multisite

I am creating a Wordpress Multisite and I need a sidebar that will display on all the child websites but where the content will be added and changed from the parent main site. I have looked into ...
0
votes
1answer
25 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
0answers
6 views

do I have a duplicate from Reference post and connect it's content to edit post?

I have a WordPress blog. that have common content in each post. I want to create custom post type and custom field for any media that can have the same data and just I will write each time different ...
0
votes
1answer
16 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
16 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
18 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
12 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
34 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
0answers
8 views

Display different content depending on subdomain

I have a main website with the domain azerty.com, I have attached another subdomain which is uio.azerty.com. I'm looking for a solution that let me able to display different content on page depending ...
0
votes
1answer
15 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
0answers
9 views

How do I isolate and customise the content of Wordpress blog posts (such as images and texts blocks)?

I am currently developing my own theme in Wordpress for my blog and aim to customize as much as possible, only really using Wordpress for its CMS. I have drafted out the basics of a Wordpress theme ...
0
votes
0answers
14 views

Theme homepage customisation get header and footer only

I am new here. My question is how to write a code snippet ( Code Snippet plugin )to remove everything between get_header and get_footer. Only get_header and get_get footer should return. get_header(...
0
votes
1answer
27 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
50 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
24 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
375 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
29 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
64 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
1answer
94 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
26 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
12 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
23 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
226 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
79 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
19 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
49 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
402 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
120 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
34 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
568 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
47 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
1answer
84 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 ...
1
vote
0answers
24 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
44 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="...
-2
votes
1answer
32 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
71 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
35 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
48 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
55 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
30 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
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
175 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
134 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
28 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 ...

1
2 3 4 5
10