The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
2k views

Show content after the first and second paragraph

The function below is used to show certain content after the first paragraph. I would like to show 'content X' after the 1st paragraph and 'content Y' after 2nd paragraph. <?php $paragraphAfter= ...
0
votes
2answers
467 views

Bulk move (or copy) from a custom field to the post content?

I need to move (or copy) the contents of a custom field into the main post body, replacing any existing content. I need to do this for a few hundred posts...Is there a quick way of doing this? I can ...
0
votes
1answer
20 views

Add end mark at the end of every article

I'd like to insert an end mark like &#128282; 🔚 to every article I post. So I added it in entry-content.php like below. <section class="entry-content"> <?php if ( ...
1
vote
0answers
11 views

JSON not valid after json_encode posts

I'm having problems saving JSON in a custom table in my database. I pull some posts (+ connected posts) from the database and add them to an array. This is a part of my array: array(2) { ...
0
votes
1answer
9 views

<?php the_content(); ?> to get a little more content after 'read more' inside loop

I want the to give a little more content after <!--more--> tag inside Loop. I saw this on wordpress codex This script gives the content before the <!--more--> tag: <?php global ...
0
votes
2answers
20 views

Expandable WordPress content (text) inside a post

I've created a CPT in my WordPress site. In this CPT I have the content element (which is the default WP content) and want to make it expandable, I mean, while viewing the CPT I want it to only ...
0
votes
4answers
605 views

How do I make certain areas editable?

I'm new to wordpress and I'm currently converting an HTML/CSS site I made to wordpress to make it easier for my client to edit it from the admin panel. I have provided 3 screenshots and I'll refer to ...
0
votes
1answer
35 views

Synchronize wordpress site between two different servers

This is my situation: I have a wordpress website on server A hosted in Belgium. It's a multilingual website available in languages: Dutch, French, English. I also need the language Vietnamese. The ...
0
votes
1answer
33 views

If user is logged-in display/hide something

I want to check at page load if the user is logged in or not and hide the login mask I programmed accordingly. There is a reason I'm using said login mask instead of redirecting to the WordPress ...
1
vote
1answer
907 views

Split content into multiple columns using more tag?

First of, this is pretty much an exact duplicate of: Split columns into three+ divs? But the given solution does not work (returns blank). I'm guessing it collides with qTranslate which adds some ...
0
votes
1answer
376 views

the_content() “crashes” for single pages

I have big trouble with the_content() for single.php. Whats my problem? the_content() doesn't give any output on single pages furthermore it crashes (no other PHP code below the function call is ...
0
votes
0answers
23 views

Modify content if has shortcode

I have a post or page , the content of that post or page is similar to the following Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et ...
-2
votes
0answers
21 views

full width row with two column - how to have content center for each ? Visual Composer [closed]

I'm trying to have this specific layout using the Visual Composer ( see image below) the aim is to have a full width row with two columns. Each columns has a background-color different. and the ...
0
votes
3answers
1k views

How to delete all posts, categories and tags from Wordpress database

I have WP website with over 40,000 posts. Now I'll like to delete all posts, categories and tags. So All content and related meta. All I want to keep is static files. Is there a easy way to do this ...
0
votes
1answer
80 views

Forbidden 403 error, permission to access, unable to read htaccess

Recently clean-installed (with exception of themes and content/upload folders) an old wordpress to the latest Wordpress 4.2.2. I continue to get this error below whenever I load files such as ...
0
votes
1answer
394 views

Empty string supplied as input when parsing content

I have this code: <?php function mb_find_my_image( $content ) { if( is_home() ) { /* if is home start */ $dom = new domDocument; $dom->loadHTML($content); ...
2
votes
3answers
11k views

Get the content of a specific page (by ID)

I have the following front-page template made: In place of those large Lorem Ipsum blocks, I need to show an "excerpt" from a specific page to fill that box (a certain # of characters). So my ...
1
vote
1answer
61 views

Programmatically inserting page breaks

Is there a way to add a page break in WordPress programmatically? I'm trying to do this within a PHP loop that goes inside a post as a widget, it generates information that it gets from YELP through ...
0
votes
0answers
37 views

How to hook into search results template or query?

I am looking for a way to hook into the search results from a regular Wordpress site search and make changes either to the display of the results themselves (by hooking into search.php somehow - not ...
0
votes
1answer
605 views

Automatically search and replace link in content (pages/posts)?

The users of my site mainly share documents by inserting links into content (pages/posts) using the built in editor. These files include everything from pdfs to word documents. The users currently ...
0
votes
1answer
18 views

Put teaser content, more-link and full content in different divs if existing… Possible?

im working on a flip-card template and have a problem. <div class="card" id="card-<?php the_ID(); ?>"> <div class="front"> <div class="card-headline"><?php ...
-1
votes
1answer
22 views

Content disappearing when trying to edit

When i click on a recently migrated blog to edit any of the posts, all of the content disappears. I read the previous post where some database info was given but I do not understand it. There was a ...
0
votes
0answers
21 views

Wordpress Premium Access

I'm new to PHP and Wordpress. I actually achieved pretty much until now, but now I just cant figure out how to do one thing: Grant registered users access to "Additional Content", I don't know why, ...
0
votes
1answer
18 views

Add video tag to youtube link fron content

I have variable $post->post_content that return me detail of post and some video URL from YouTube. I need to remove any text from $post->post_content else YouTube link, And add to YouTube likn ...
0
votes
0answers
17 views

content-aside.php not being recognised

I am new to WordPress and I have hit a very frustrating block. I am trying to set up post formats, which I have done, and can select from the admin panel, but none of them will recognise my ...
0
votes
1answer
25 views

include exception inside theme for empty widget area

Im using Storefront-paper theme for a blog, and for my sorprise, sidebar.php include a code to block possibility to have empty widget area. In this case I would like to use a page how front page, ...
0
votes
1answer
27 views

Text with special class as excerpt (or exclude special class)

I am new in Wordpress and I am trying to customize my own theme. All my posts are starting with a kind of content that I don't want to become the excerpt. It is kind of header. Is there a way to ...
0
votes
3answers
68 views

How to make author box like this & add after every post?

I want to make an author box like this : <table style="border: solid 1px #ffffff;width:100%;"> <tbody> <tr> <td> <h3><b><span ...
0
votes
5answers
2k views

remove <p> tags from the_content

I've got a post format of Image, and I am running into an issue where the image is being wrapped by a <p> tag. I want to get rid of that tag (specifically on the single.php version) of those ...
0
votes
3answers
224 views

Wordpress tinymce prints empty P tag and break html format

I'm raising this problem because I don't find a latest answer and the problem still exist to me. I'm running wordpress 4.2.2 with x theme when I'm editing the content via WP default editor (tinymce). ...
-1
votes
1answer
16 views

Full Width Container Colour Problems

I wanted to duplicate a page and so I copied the code into a new page. Everything worked however one full-width container has a background colour that on the original page stretched across the whole ...
0
votes
1answer
44 views

append one page content into another

I need to append the content of one page into this one. I have tried to use a plugin which is very easy to use but doesn't work in my case. Then I found following code: <?php $recent = new ...
0
votes
1answer
81 views

Create dynamic content from one WP page to multiple other pages

I want to create dynamic content that is taken from a specific paragraph from one page and writes to a paragraph on multiple pages that feature that same content. I am new to PHP and not sure how to ...
0
votes
0answers
34 views

Content Section Custom Anchor Not Working

I purchase WP theme (Techwise) and I found an issue with content menu sidebar in post page. that content not working as same (toc) Table of Content. it's not working with Arabic letters but working ...
0
votes
1answer
40 views

Page for logged in user to Edit/Delete their own content?

Im new to WordPress, I have been working with Drupal for about 6 years and recently switched over to WP, couldnt be happier :) I have a question that I need some assistance with and was hoping that ...
1
vote
4answers
101 views

Output string using php printf

I'm trying to display a texts with functions on my page. Please find the code below. I'm not getting the output I want. <?php $content = the_content(); ?> <?php printf(__('Output : %1$s', ...
0
votes
1answer
43 views

How to get sort content by page id?

I wont to get short content in my footer area. So, I write my code as follow: $page = get_page_by_title( 'About us' ); $content = apply_filters('the_content', $page->post_content); ?> ...
0
votes
1answer
30 views

Show part of front page on another page [closed]

I'm using the Zerif Pro theme on my wordpress website: http://themeisle.com/demo/?theme=Zerif%20Pro%20K I've added content to the frontpage by customising the theme. I'm trying to show a part of the ...
0
votes
1answer
55 views

How to refresh a template page on Wordpress in 3 seconds - easiest method?

Basically, on my site I have content submitted via a search bar. I'm using a content-none template to detect if the user is signed in - and if so it submits a post programmatically (if the post ...
1
vote
3answers
380 views

Hardening wordpress: wp-content file permissions?

I'm writing a script to automatically check file permissions in all wordpress installations on a server. This document http://codex.wordpress.org/Hardening_WordPress is unclear on a certain point: ...
0
votes
0answers
67 views

split the content using more tag and array

I'm trying to create a function that allows me to SPLIT the_content in wordpress using the more tag in the posts field. However, I don't know what I'm doing and seem to be making a mess In my ...
0
votes
1answer
25 views

Advanced sorting of content in wordpress [closed]

Let's just say that I have website about cars. I have already created several categories, depending on which brand the cars are. My question is simple. I would like to implement some advanced type of ...
0
votes
0answers
26 views

Sticking a post or page to the top of all WordPress pages, posts, index pages, etc

I'm trying to add the same common content (like an announcement, banner, or slider) to the top of all WordPress pages, posts, category archives, etc. Standard WordPress sticky posts are displayed only ...
0
votes
1answer
47 views

Having a strange wordpress issue where content does not load when past a certain amount

I'm having a really strange issue working with one of the pages on a site. The content isn't anything crazy or complex. It is a simple list of links. The issue I'm having is that it seems after a ...
1
vote
1answer
43 views

Bulk edit contents of pages

I would like to know how to edit the content area for many pages. I have many options for bulk editing of pages, such as parent and sidebar, like this image: But I can't do this for the actual ...
2
votes
2answers
1k views

Total word count for posts by one author

How can I get a total word count of one author's posts? I would like to be able to see what the total word count of their output is, summed across all of their posts (ideally with a breakdown by ...
3
votes
1answer
3k views

What server settings are required to import WordPress XML file

I am trying to import my site using the WordPress import XML page. My XML file is 7mb so when I try to import it I receive a "500 Internal Server Error" page. I read some other posts and tried using ...
0
votes
2answers
3k views

Import and replace existing page/post content

Is there any way to import a basic, exported Wordpress content XML file and have it replace the existing content? What I'm trying to do is synch up two instances of a site (development and staging ...
1
vote
2answers
703 views

Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import - How?

Some way to Flush or Overwrite all Imported Content in a Site for a Fresh Import - How? Is there an easy quick way to do this? To delete all Pages, Posts, Comments and stuff that got imported? Or ...
4
votes
2answers
12k views

Stop WordPress automatically adding <br> tags to post content

Is there a way to stop WordPress from automatically inserting <br> tags when adding returns in the WordPress text editor. I would like for it to behave more like a code editor where I can ...