New answers tagged

0

Running forms through the_content filter should be fine.


1

The general implementation of such "pretty" permalinks in WordPress is realm of WP Rewrite. However it is pretty wide topic and low level code is a bit of abomination. I would say these are three most common techniques for it, complexity ascending: Use WordPress native data structures (such as Custom Post Types and/or Taxonomies) and benefit from ...


1

thanks to @TheDeadMedic, I found the solution. I used reserved terms, and that's why Wordpress interpreted my inputs as query parameters. so for example with my categorys, I had to change my classes in my form : 'post_category' => array($_POST['cat']), // Usable for custom taxonomies too by 'post_category' => array($_POST['my_cat']), // ...


0

Use PHP explode function and convert string into array using a delimiter | then you can use foreach loop. Example:- $str = get_the_author_meta('my_pet', $author_id); $pets_array = explode('| ', $str); if (is_array($pets_array)) { foreach ($pets_array as $pet) { echo $pet; echo 'somtext'; echo '<br />'; } }


0

To display it in a template, use this: <?php /* Template Name: Template-Editor */ ?> //have to load all the scripts and header info <?php get_header(); ?> <?php $content = 'Initial content for the editor.'; $editor_id = 'editor'; $settings = array( 'wpautop' => true, //Whether to use wpautop for adding in paragraphs. Note that the ...


0

Here is what you are looking for: <?php class mm_location_widget extends WP_Widget { function __construct() { parent::__construct( // Base ID of your widget 'mm_location_widget', // Widget name will appear in UI __('Locations By Marvil Media Widget', 'mm_location_widget_domain'), // Widget ...



Top 50 recent answers are included