The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
25 views

Batch process: remove first image from post content

I already added a featured post image to all my posts (>1000). Some posts (around 700) still have an image at the beginning of the post content. Now I need to remove all images which are right at ...
2
votes
1answer
24 views

Content only on last page, if the page has pagination

I want to show a donate button after the post and on the LAST page of paginated posts. While my code totally works, it is probably not the best way to do that. Has anybody a more elegant solution? ...
1
vote
1answer
28 views

How to have a “clean” post content, for excerpt and social networks sharing

Sometimes I start my blog posts by : This is a guest post.... This is a sponsored post.... [download]This is a download for the post[download] [youtube]this is a video that I put in the begenning[...
0
votes
1answer
19 views

Search content for shortcodes and get parameters

In content I can have multiple shortcodes like [book id="1"] [book id="14" page="243"] Is there any help method with which I can search the content for that shortcode and get its parameters? I need ...
0
votes
1answer
30 views

Hide specific content from excerpts

I am using Inked Blog to generate lists of articles on a page. However, I need to remove a specific headline (with the class sow-headline-container) from the excerpts. This is a bit of a struggle, but ...
1
vote
1answer
26 views

Is there a way to show only the text editor

I'm working on a desktop app and I'd like to show only the editor and it's toolbar. I'm able to load and save the past content easily enough through the app but I'd like to be able to reuse the ...
4
votes
2answers
102 views

How to remove Nextpage tag inside posts text depending of utm_campaign

Is it possible to remove "nextpage" tag inside posts text depending of utm_campaign ? Depending of where my visitors are comming from, I want to remove the <!--nextpage--> of my post. I ...
0
votes
1answer
23 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 ...
0
votes
0answers
14 views

Double gallery inserted in posts

I have a code for customizing gallery which I found in this post Custom Gallery HTML only working when images are attached to post/page I have customized it to suit my needs, it is set so that the ...
0
votes
1answer
44 views

How to get a post's content? [closed]

I'd like to known what is the best solution for getting a sepecific post's content. By slug, tag, id or category ? Or template assigned to this post ? I don't like the way to find this post by its id ...
0
votes
1answer
23 views

How to add & show new fields in posts in Wordpress

Im have created post types called news in wp-admin which will be able to add New News and display on News page. Here are some screenshot first look at them, that is how i want to display stuff. ...
-1
votes
2answers
32 views

Load files content [closed]

I would like to load a css file in my Wordpress plugin by php. First I tried file_get_contents: $stylesheet = file_get_contents(plugins_url('assets/css/fonts.css', __FILE__ )); But than I get this ...
-1
votes
1answer
29 views

How can you find and replace text in wordpress files on localhost xampp folders?

I am trying to do some find and replace in files tasks to my Local Wordpress installation with Xampp. But some text can't be found, for example content text. I have a multisite and I want total ...
0
votes
1answer
36 views

Wordpress each user has each content for a page,how to do that?

I am a newer of PHP language,I have a project of user system,that need each user has each different content,I place the content to a page,when user login,open this page will display that content.To do ...
0
votes
1answer
15 views

WordPress get_the_content losing formatting when emailed

I'm pulling the content of a post outside of the loop to send in an email like so: $content = get_the_content(); However, when I craft the body of the email: $body = 'Hello: <br/><br/&...
3
votes
2answers
42 views

Where to hook into post content?

Which hook or filter is used to edit the post content before the_content filter is applied to it. For instance, if I wanted to add Hello World, as the first text in every post.
0
votes
1answer
29 views

Change Content for Specific Page

I want to be able to replace a page's content if it is a very specific page. Here is what I've written so far: function signup () { global $post; $slug = $post->post_name; if (...
-1
votes
1answer
40 views

Using a filter in functions.php to add content to single posts regardless if post is in main or child category

Im using following filter (codex) to add some html content with a lower priority (20) to the bottom of my single posts wich are in a specified category: add_filter( 'the_content', '...
0
votes
1answer
35 views

Add caption to thumbnails in content

Still trying to get the answer, i don't really know wordpress core (but i'm actually pretty good in PHP), I can't find how to add caption to my images in posts. I know we can use get_posts to any ...
0
votes
1answer
31 views

I am not seeing any content within WordPress after migration?

Last night I migrated a site to a live server using Duplicator, all seemed to work well. Today I just noticed that once logged in, WordPress is not displaying any content on the editor? Although the ...
0
votes
0answers
15 views

Category page ordered by custom fields with IF conditions

on my site I need to sort posts by a custom field when shown in category pages like this one, but my problem is that I kinda need to do it like this: -if post of the "lyrics" type has the field "...
0
votes
2answers
48 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 ...
1
vote
3answers
1k views

Best way to eliminate xmlrpc.php?

What is a best way to eliminate xmlrpc.php file from WordPress when you don't need it?
0
votes
1answer
38 views

Regex works in regexr, but not if I filter content [closed]

I want to filter the content of everypost and add classes to my links depending on certain conditions. At the moment I just want to filter all href attributes from the content and change them. ...
0
votes
0answers
34 views

Update content post and meta-boxes.php

I have "stupid" iussue (for you), but difficult for me. I need to change (on the fly) the post content when I publish or update the post, and I did it simple adding some code to the wp-admin/includes/...
0
votes
0answers
32 views

Is there a way to capture http request variables and provide different content?

I want to implement a rest webservice on top of wordpress. That means that for a given content type (custom), if the request either cotains something like ?format=json or the http negociation accepts ...
3
votes
2answers
61 views

What is the impact if i ignore title and content in my custom post types CPT?

I am using CPTs (with PODS) and i need to "ignore" in "supports" the title and content. I have no problem to alter the columns in the admin manage CPT list. Also i understand that the standard ...
1
vote
0answers
19 views

How to implement comments on specific fields in wordpress?

I have a custom content type in Wordpress, having some custom fields. I need some of this fields to be opened to comments, that is Content Flower --> Field Name --> Field Color --> Field ...
1
vote
1answer
25 views

How to create new post content templates for my users?

I admin a wordpress site for my kids primary school. At the number of editors/contributors is small, but we'd like to expand it. To simplify the uptake for some of the office staff I'd like to have ...
0
votes
0answers
24 views

One click install on WordPress site

I am trying to follow this One Click demo content installation feature in WordPress theme options panel. Did everything right as mentioned but it does not seem to work now. Also en-queued the JS file ...
0
votes
0answers
11 views

How to fix the format of entry pages with thumbnail images?

I am trying to make the entry posts with a thumbnail image to the left, and title above the excerpt of the article to the right of the thumbnail, but aligned with it. Currently, the thumbnail is below ...
0
votes
2answers
53 views

Inserting ads within content

I want to show adsense ads below the 4th and 20th paragraph of every blog post, ONLY if there is a 20th paragraph. I managed to insert an ad below the 4th ad by placing the following code in my ...
1
vote
1answer
39 views

Setup private content for specific users with daily updates [closed]

So I have only found membership plugins which cater for private area where users can access the material after paying depending on their role. I need to make a dashboard kind of area where users can ...
0
votes
0answers
21 views

Editing specific text on Custom Page Template

I'm a Wordpress beginner and made my first personal theme from a static html website. Currently I'm trying to edit specific text on for example the homepage. I did manage to changing background color ...
0
votes
0answers
32 views

Need help for showing same front content page, search page and portfolio post page

I want same front page content for post front page, search page and jetpack-portfolio page. Currently search page not displaying post thumbnail and jetpack-portfolio page not displaying entry-meta. ...
1
vote
1answer
47 views

Set post title based on first h2 element in the content section

I have a front end editor set up for users to create posts and I would like to make it as simple as possible to create posts with the least amount of fields involved. Is it possible to generate the ...
2
votes
1answer
23 views

Moving comments section to left of content (Twenty Thirteen)

So I want to move my comments section to the left of my content in my Twentythirteen child theme. I've located where it's pulled from in the content.php file: <?php if ( comments_open() &...
1
vote
1answer
44 views

Front end inline editing?

I was wondering if it is possible to allow my users to create posts from the front end in an inline editor, similar to content creation on Medium.com? I know there are many options out there for ...
1
vote
2answers
62 views

What is the proper way to get contents of a page?

The goal is very simple - to print page content on a page. I tried: <?php the_content() ?> <?= get_the_content() ?> then <?php the_content(get_the_ID()) ?> <?= get_the_content(...
5
votes
1answer
128 views

Get ID of a page containing secondary loop in content

I am trying to get the ID (outside of loop) of a page which have a loop of another CPT within its content using a shortcode. If I do a print_r of get_queried_object(), all I get the args used to ...
-1
votes
2answers
50 views

Display content based on an event

Ok, I am building this membership plugin. Plugin sends user to a digital payment site and this one is sending user after the operation back to the wp site with a code (POST), to a page that was ...
0
votes
3answers
63 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 ...
1
vote
2answers
180 views

Why do wordpress store pages/posts within the database instead of files? [closed]

I don't understand why wordpress stores that kind of data: posts' content and pages' content, directly within the database instead of storing it in the filesystem and referencing them in the database ...
0
votes
0answers
99 views

Function inside shortcode doesn't display WP_Query properly - custom post type

I have a problem with some shortcode and a function to display list of shops based on another shortcode. I wrote some code: Shortcode function shops_list($atts){ extract(shortcode_atts(array( ...
0
votes
0answers
17 views

figure tag substitution in content editor

All the searches I have done imply the figure tag wrapping is a Good Thing. I'm not sure why as I just want the image without caption. I have this piece of code within the content editor; <img ...
0
votes
0answers
88 views

Spliting post content into two columns

I'm using this code to split post content into two columns: $content = get_the_content(); $content_car = strlen( $content ); $content_half = $content_car / 2; $chunks = str_split( $content, $...
0
votes
2answers
20 views

What content to use for inserting images

I would like to create a page template that will have two containers. Left one should be for text (it is a multilingual website so that is why I need a page template), and the right side should be for ...
0
votes
1answer
22 views

Copy from wordpress for dev gives different output in browser

I'm trying to accomplish the following: Havin a copy of the current live site to do some development. I would currently prefer to have the dev site on the same server. I did the following: List ...
1
vote
0answers
40 views

Post Format Default Content

Is it possible to have the default content change as the user selects different post formats? What I want is for backend users of my Wordpress to select different formats, thereby changing between ...
0
votes
1answer
61 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>...