Skip to content

Commit 7fb4137

Browse files
committed
Upgraded grunt-wordpress 0.0.3 and added categories. Still need to generate dist/taxonomies.json to support sub-categories (including descriptions and slugs)
1 parent 18e66e6 commit 7fb4137

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

config-sample.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"host": "wordpress.dev",
3-
"port": 80,
4-
"path": "/xmlrpc.php",
2+
"url": "wordpress.dev",
53
"username": "admin",
64
"password": "admin"
75
}

entries2html.xsl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@
2424
<xsl:template match="/">
2525
<script>
2626
{
27-
"title": "<xsl:value-of select="//entry/@name" />"
27+
"title": "<xsl:value-of select="//entry/@name" />",
28+
"termNames": {
29+
"category": [
30+
<xsl:for-each select="//entry/category"><xsl:if test="position() &gt; 1"><xsl:text>,</xsl:text></xsl:if>"<xsl:value-of select="@name"/>"</xsl:for-each>
31+
]
32+
}
2833
}
2934
</script>
3035
<xsl:if test="count(//entry) &gt; 1">

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
],
2323
"dependencies": {
2424
"grunt": "0.3.x",
25-
"grunt-wordpress": "0.0.2"
25+
"grunt-wordpress": "0.0.3"
2626
},
2727
"devDependencies": {},
2828
"keywords": []

0 commit comments

Comments
 (0)