Some WP codes

1) Workarounds for WPUF’s missing edit link! (button)

post-id: 5787

<a href=/dashboard/edit/?pid={return_post_id]>EDIT</a>
{return_post_id]=5787

for return_post_id to work you need the following code in the theme’s functions.php

/* ----- START 5787 ------ */
add_shortcode( 'return_post_id', 'RRB_return_post_id' );
function RRB_return_post_id() {
return get_the_ID();
}
/* ----- END 5787 ----- */

Just to keep them together, also code for featured image in AIOVG

/* ===== START RRB ADDED ===== */

/* START 5787 */
add_shortcode( 'return_post_id', 'RRB_return_post_id' );
function RRB_return_post_id() {
return get_the_ID();
}
/* ----- END 5787 ----- */

/* START featured image can be added to Video Gallery posts. */
function aiovg_custom_init() {
add_post_type_support( 'aiovg_videos', 'thumbnail' );
}
add_action( 'init', 'aiovg_custom_init', 11 );
/* ------ END Video Gallery posts -------- */

/* ===== END RRB ADDED ===== */

EDIT


2) Images -> VIDEO in lightbox!

  1. Plextube.nl link:
    https://plextube.nl/videos/embed/e530faba-8bd2-4818-b32c-2b64a20256ba?autoplay=1&title=0&warningTitle=0&p2p=0
    (can copy video code from stats-link in the list
    https://plextube.nl/stats/videos/e530faba-8bd2-4818-b32c-2b64a20256ba)
  2. Vimeo links: https://player.vimeo.com/472591199
  3. Bitchute

Lightboxes

  • Easy Fancybox – class=”fancybox-iframe”

Add “Class” to image (!) link in TinyMCE


Open external links in a new window format for exceptions:
More advanced: https://ps.w.org/wp-external-links/assets/screenshot-1.png?rev=2560578

plextube.nl|youtube.com|vimeo.com|youtu.be

3) Polls

[totalrating-widget id=”3″]


4) Make links FB style, with thumbnail and excerpt


5) Backup/copy/clone/migrate?

so confusing…


Lightboxes

Adapt TinyMCE

Click to rate this post as a whole, thank you.
[Total: 0 Average: 0]