Skip to content

Instantly share code, notes, and snippets.

@Strap1
Strap1 / Convert Custom Taxonomy to Custom Post Type
Last active July 24, 2024 20:27
A very hacky and quick way to transfer a Custom Taxonomy to Custom Post Type and transfer associated metadata to Custom Meta Fields. Note: You can use this if it fits your needs, but it is custom to my set up. Use in a testing environment. It's a plugin with no interface, runs on activation and depending on the amount of data, may hit PHP timeou…
<?php
/*
Plugin Name: Convert Custom Taxonomy to Custom Post Type
Plugin URI: N/A
Description: A plugin to convert a Custom Taxonomy to a Custom Post Type and transfer associated metadata.
Version: 0.1
Author: Strap1
Author URI: http:/www.hiphopinenglish.com
/** Convert Taxonomy '%name%' to CPT '%name%' **/
@Strap1
Strap1 / index.php
Created March 7, 2014 20:32
Popcorn .srt Issue
<div id="showcase-video">
<div class="lyrics-youtube"></div>
</div>
<div id="subs"></div>
<script>
document.addEventListener( "DOMContentLoaded", function() {
var pop = Popcorn.youtube( ".lyrics-youtube", "https://www.youtube.com/watch?v=Z7gbtEcA7BE", {
defaults: {
subtitle: {