Skip to main content

Home/ Wordpress/ Group items tagged PHP

Rss Feed Group items tagged

bryan yu

How to use php syntax in Wordpress - 3 views

  •  
    Earlier I would have introduced it this "php code widget" that is a wordpress widget allows you to run php syntax, but i find another decent plugin (Exec-PHP) of wordpress these two days. Although it is also the implementation of php syntax, but its advantage is able to use in the article. if you want to use it in widget, you can fill php code in the text. There is a very simple way to install, just download it into your plugin directory and then extract file and active it so that you can add php code in the article and widget...
Luciano Ferrer

widgets - Give Editor Access To Sidebar - WordPress Development Stack Exchange - 3 views

  •  
    "The edit_theme_options capability should allow the user to edit the sidebar as described on this page : http://codex.wordpress.org/Appearance_Widgets_SubPanel Code to add to functions.php $role = get_role('editor'); $role->add_cap('edit_theme_options'); Edit: This should work to prevent editor accessing themes or menus function custom_admin_menu() { $user = new WP_User(get_current_user_id()); if (!empty( $user->roles) && is_array($user->roles)) { foreach ($user->roles as $role) $role = $role; } if($role == "editor") { remove_submenu_page( 'themes.php', 'themes.php' ); remove_submenu_page( 'themes.php', 'nav-menus.php' ); } } add_action('admin_menu', 'custom_admin_menu'); I haven't had chance to test this, but it only removes them from the menu they may still be able to access them by typing in the URL directly."
fastidioustec

PHP Application Development Service - Fastidious Technologies Pvt. Ltd - 1 views

  •  
    Looking For a Best PHP Web Development Company In Ahmedabad ? We Offering Custom PHP Web Application Development Service for customers worldwide. Also We Provide wordpress development ,Mobile Application Development ,android app development, iphone development.
cmsMinds - Web Design & Development

10 helpful tips for Novice PHP developers - 0 views

  •  
    Learning from my experience, on how I got into PHP development, I wanted to share some ideas of what has helped me master PHP.
Luciano Ferrer

DDecode - PHP Decoder (eval, base64_encode, gzinglate, etc). - 0 views

  •  
    "PHP Decoder This tool will attempt to decode any PHP hidden code, including eval(base64_decode, eval(gzinflate, etc"
Vernon Fowler

WordPress Anything Slider - 0 views

  • <?php echo do_shortcode('[anythingslider]'); ?> or <?php echo do_shortcode('[anythinggallery]'); ?> or <?php echo do_shortcode('[anythingpostslider]'); ?>
  • ?php echo do_shortcode('[anythingslider]'); ?> or <?php echo do_shortcode('[anythinggallery]'); ?> or <?php echo do_shortcode('[anythingpostslider]'); ?>
Kinjal Adesara

Best Free PHP Libraries That Can Make Your Web Development Simpler - 0 views

  •  
    PHP is one of the most widely used web programming languages in the world. Website development is a time-consuming task, but if you are planning to use PHP, you can actually save lots of time. There are several PHP libraries out there that can simplify your work process and reduce chances of any coding error during website development.
Vernon Fowler

Sublime Text 2 for PHP & Wordpress Development | Clint Berry - 1 views

  •  
    "Here are some recomendations for setting up Sublime Text 2 for PHP and WordPress development."
awqi zar

Create Your First WordPress Plugin in 10 Minutes | PHP Heaven - 14 views

  •  
    A tutorial demonstrating how to create a basic WordPress plugin, including a Graphical User Interface (GUI) in the WordPress admin area.
Vernon Fowler

How to Widgetize Your WordPress / BuddyPress 404 Page in 2 Simple Steps - WPMU.org - 1 views

  •  
    Step 1: Register the 404 Widget Area in Functions.php Step 2: Add the 404 Widget Tag to 404.php
Luciano Ferrer

Distinto color según el estado de las entradas | Ayuda WordPress - 1 views

  •  
    "Un modo genial, además de chulo, de distinguir las entradas por su estado sería que se mostraran en distinto color en la ventana del listado de entradas ¿no?. Pues conseguirlo es muy sencillo, solo tienes que añadir este código al fichero functions.php de tu tema activo y ya lo tienes function posts_status_color() { ?> .status-draft { background: #FCE3F2 !important; } .status-pending { background: #87C5D6 !important; } .status-publish { /* por defecto */ } .status-future { background: #C6EBF5 !important; } .status-private { background: #F2D46F; }
Luciano Ferrer

Redirección de usuarios a páginas personalizadas al registrarse en WordPress - 0 views

  •  
    "// --------------------------------- // Redirección de registro (login) // según el tipo (rol) de usuario. // --------------------------------- function mytheme_custom_login_redirect($redirect_to, $request, $user) { global $user; if ( isset( $user->roles ) && is_array( $user->roles ) ) { // Si es un usuario administrador // le redirigimos a la página de gestión de plugins if ( in_array( 'administrator', $user->roles ) ) return home_url( '/wp-admin/plugins.php' ); // Si es un usuario con permisos de editor // le enviamos a la página de gestión de entradas. elseif ( in_array( 'editor', $user->roles ) ) return home_url( '/wp-admin/edit.php' ); // Y a todos los demás usuarios // les redirigimos a la página de inicio de la web. else return home_url(); } else { return $redirect_to; } } add_filter( 'login_redirect', 'mytheme_custom_login_redirect', 10, 3 );"
Luciano Ferrer

How to Style Each WordPress Post Differently - 0 views

  •  
    "Have you ever came across a site that style their posts differently? Some sites have different sticky posts highlighted whereas others have each category post styled with a different color, or some may even have a totally unique outlook altogether. Well, that is exactly what we are going to cover in this article. We will share how you can style different WordPress posts in different ways. So what are we going to use? We will use a function called post_class. Post Class function prints out different post container classes which can be added, typically, in the index.php, single.php, and other template files featuring post content. Note: This tutorial requires that you are somewhat familiar with WordPress theming, and know fairbits of HTML / CSS. "
Jungle Jar

Wordpress Tutorial: Make Your Page Titles SEO Friendly - 0 views

  •  
    If you're a Wordpress Content Management System user, and you would like to make your page titles SEO friendly without installing any plug-ins or modifying your website too much, then this article might be for you. All it requires is a few lines of PHP in your header.php file.
Fabian Herbel

How I used a WordPress Child Theme To Redesign My Blog - 0 views

  • First, Make a Functions.php File
    • Fabian Herbel
       
      It seems that the functions.php is the key to edit the php-files for theme design with plugins. More research is needed.
david degrelle

Optimiser les performances PHP et WordPress chez OVH en 4 lignes dans le htaccess - 0 views

  •  
    Pour cela, il suffit juste de changer 4 paramètres de PHP et pour y parvenir nous allons créé/édité le fichier .htaccess à la racine de votre FTP. (dans le dossier WWW) Et on va y insérer les lignes: SetEnv REGISTER_GLOBALS 0 SetEnv ZEND_OPTIMIZER 1 SetEnv MAGIC_QUOTES 0 SetEnv PHP_VER 5
anonymous

Shortcode Exec PHP - 0 views

  •  
    Execute arbitrary, reusable PHP code in posts, pages, comments, widgets and RSS feeds using shortcodes in a safe and easy way
Luciano Ferrer

Seguridad WordPress: Añadir un pestillo a WordPress para evitar acceso - 0 views

  •  
    " Un archivo .htaccess que es el que hará de pestillo. Cuando tenga el punto delante(.htacess) estará echado. Cuando no tenga el punto(htaccess) estará quitado. Un archivo close.php que es el que determinará que acción realizar cuando intenten entrar cuando el pestillo esté echado. Un archivo opcional close.html, por si queremos mostrar una página html como respuesta. Montaje Creamos el archivo .htaccess en el directorio /wp-admin/ de nuestro WordPress. Su contenido será el siguiente Archivo /wp-admin/.htaccess Apache RewriteEngine on RewriteBase /wp-admin/ RewriteCond %{REQUEST_FILENAME} !^(.+)\.(css|js)$ RewriteCond %{REQUEST_FILENAME} !^(.+)\.(gif|jpg|jpeg|png|ico)$ RewriteCond %{REQUEST_FILENAME} !^(.+)\.(eot|svg|ttf|woff)$ RewriteRule ^(.+)$ close.php [NC] "
1 - 20 of 186 Next › Last »
Showing 20 items per page