Tag Info

New answers tagged

1

If you are needing users to have the ability to edit/delete their submitted content I would assume they are registered with their own member account on your wordpress website. If this is the case, why not build a custom role for your new members and then restrict everything for that role in the WP-admin to only show the posts add and edit page? This would be ...


-1

Another approach: ob_start(); the_content(); $content = ob_get_clean();


1

the_content() prints it output to screen. What you want is to return that output and assign a variable to it. You should note, although get_the_content() do exactly what you want, it only returns unfiltered content, and not filtered content like the_content(). You should manually add those filters, which is real easy. You can do the following $content = ...


1

Kim is correct. get_the_content() displays your intended result. <?php $content = get_the_content(); printf("Output: %1$s", $content); ?>


2

You want to use get_the_content(), the_content() prints the content. get_the_content() will be assigned to your variable.


0

I believe your best solution will be to setup postdata and the making use of the the_content() template tag $post = get_page_by_title( 'About us' ); setup_postdata( $post ); ?> <p> <?php the_content(); ?> </p> <?php wp_reset_postdata(); ?>


0

You must separate the template file who you want Like get_template_part('file_without_php');


0

I would recommend installing the Advanced Custom Fields plugin in order to achieve the desired functionality. Once you download it, create a few fields. For example, create a field called "footer_text" and print it like this: <?php the_field('footer_text'); ?> and so on with the rest of the fields.


-1

Found a method! echo '<META HTTP-EQUIV="REFRESH" CONTENT="3">' ;


0

chgrp www-data .htaccess chmod a-wx .htaccess WordPress needs to write rules to .htaccess at some point, usually to do with how a URL is seen and re-written. www-data group may need write access.


0

All what you want to do you can get just with ordinary custom fields. I can imagine custom fields like colour, age, brand etc. and theirs filtering according to user's selection in frontend. Please read about custom fields here https://codex.wordpress.org/Custom_Fields There are some awesome plugins for creating custom fields too. One of my favourite is ...



Top 50 recent answers are included