Plugin Directory

Changeset 951091


Ignore:
Timestamp:
07/18/2014 03:14:58 PM (12 years ago)
Author:
DanHarrison
Message:

fix for no syntax-highlight in readme mdown parser

Location:
wp-portfolio
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-portfolio/tags/1.37/readme.txt

    r951081 r951091  
    396396Yes. To add custom fields you will need to add to `wp-content/themes/%YOUR_THEME%/functions.php` (where `%YOUR_THEME% is the name of the wordpress theme you are using),
    397397here you should use add_filter to add a function to 'wpportfolio_filter_portfolio_custom_fields'. Your function will need to return an array containing an associative array for each item, for example:
    398 `php
     398`
    399399// Function to add custom fields to the wp portfolio plugin
    400400function portfolioPlugin_filter($fields) {
  • wp-portfolio/trunk/readme.txt

    r951081 r951091  
    396396Yes. To add custom fields you will need to add to `wp-content/themes/%YOUR_THEME%/functions.php` (where `%YOUR_THEME% is the name of the wordpress theme you are using),
    397397here you should use add_filter to add a function to 'wpportfolio_filter_portfolio_custom_fields'. Your function will need to return an array containing an associative array for each item, for example:
    398 `php
     398`
    399399// Function to add custom fields to the wp portfolio plugin
    400400function portfolioPlugin_filter($fields) {
Note: See TracChangeset for help on using the changeset viewer.