things are getting really hard with full site editor.
i set up a custom pattern in
/wp-content/themes/my-child-theme/patterns/parallax.php
i can access the pattern in wp FSE.
but when i insert the block including some php like
<?php echo "xxx" ?>
the xxx will be statically inserted from the parallax.php
how do i get the posts featured image inside parallax.php?
<?php
/**
* Title: Parallax Beitragsbild
* Slug: pfefferprinz-23-child/parallax-beitragsbild
* Categories: featured
*/
?>
<!-- wp:heading -->
<h2>Hello <?php echo "xxx"; ?></h2>
<!-- /wp:heading -->
i also tried setting up a shortcode inside functions.php – output stays static as well.
]]>My 3D model works perfectly, but I can only zoom in up till the outside wall of the 3D model. I want to show the interior / inside as well, so I need to be able to zoom through the wall. Is this possible? It is possible with the Microsoft 3D viewer for example.
Cheers.
]]>But I can’t find any plugins that allow for this.
]]>In options table “Searching” in line “Keyword matching” of Relevanssi I found “See Help, if you want to make Relevanssi match also inside words.”
I want to activate this option but I can’t find this Help. Google also isn’t helpfull.
How can I activate the matching for inside words?
e.g. searching for “geheimnis” must find Firmengeheimnisse.
Thanks!
]]>i wrote a plugin for cf7 that outputs the prices calculated by dropdown values of multi page form page 1 in the 2nd form page. to do so, i used the plugin php shrotcode and a simple [prices] in form part 2. unfortunately since one of the latest updates this doesn’T work no more. i already tried a lot:
– shortcode in functions.php > cf7 data for price calculation not available
– is there a hook i could use to output the prices on form 2 head?
– maybe use js workaround with php to get the prices? but then it’s really hard to get the cf7 form data…
how could i achieve this?
code of my plugin:
<?
/*
Plugin Name: Contact Form 7 Preisberechnung Bavaria-Transfer
Plugin URI: https://ff-webdesigner.de/
Description: Berechnet die Kosten für Transferservices innerhalb Contact Form 7
Author: Frank Woelky
Version: 0.1b
Author URI: https://ff-webdesigner.de/
*/
include_once ("/www/htdocs/w0090f11/bavaria-transfer.net/wp-content/themes/enfold/functions.php");
function bavaria_preise_js() {
echo '<script type="text/javascript" src="/wp-content/plugins/bavaria-preise/bavaria-preise.js"></script>';
}
add_action('wp_head', 'bavaria_preise_js');
add_action("wpcf7_before_send_mail", "bavaria_preise");
function bavaria_preise($cf7) {
$wpcf = WPCF7_ContactForm::get_current();
if(stripos($wpcf->form,"bavaria_preise()")===FALSE)return FALSE; // wenn nicht erster schritt formular
// ansonsten:
$p_data =cf7msm_get('cf7msm_posted_data');
$csv=daten_einlesen();
//echo "<pre>";
//print_r( $p_data);
//echo "</pre>";
//print_r($csv);
// plz preis ermitteln
for($z=2;$z<count($csv);$z++) {
if($csv[$z+2][0]==$p_data['abholort']) {
$plz_preis=$csv[$z+2][1];
break;
}
}
// transfertyp grundpreis
switch ($p_data['transfertyp']) {
case "Sammeltransfer": $transfertyp=1; break;
case "Express-Fahrt": $transfertyp=9; break;
case "Einzelfahrt": $transfertyp=17; break;
case "VIP-Service": $transfertyp=25; break;
}
if($p_data['transfertyp']=="Sammeltransfer"||$p_data['transfertyp']=="Express-Fahrt")
$personen=$p_data['personen']-$p_data['unter14'];
else $personen=$p_data['personen'];
$preis_transfertyp=$csv[1][$transfertyp+$personen];
// aufpreise für kinder
if($p_data['transfertyp']=="Sammeltransfer"||$p_data['transfertyp']=="Express-Fahrt")
$aufpreis_kinder=$p_data['unter14']*7;
if($p_data['step']=='1-3')$pro_strecke=" pro Strecke";
$preis=$plz_preis + $preis_transfertyp + $aufpreis_kinder;
if($p_data['transfer']=='Hin- und Rückfahrt'&& $p_data['step']=='2-3')$preis*=2;
$preis='<div id="ff_preis">Preis: <span id="ff_preis_inner">'.$preis.',00 € '.$pro_strecke.'</span></div>';
return $preis;
}
function hidden_price_field() {
$preis=strip_tags(bavaria_preise());
$output='<input class="wpcf7-form-control wpcf7-text hidden" type="text" value="'.$preis.'" name="preis">';
return $output;
}
function daten_einlesen(){
$datei=$_SERVER['DOCUMENT_ROOT'].'wp-content/plugins/bavaria-preise/preise.csv';
$zeilen = file($datei);
foreach($zeilen as &$zeile) {
$csv[] = explode(";",$zeile); //parse the items in rows
}
return $csv;
}
function PLZ_dropdown($choices, $args=array()) {
$csv=daten_einlesen();
$choices = array();
for($z=2;$z<count($csv);$z++) {
$choices[$csv[$z+2][0]]=$csv[$z+2][0];
}
return $choices;
}
add_filter('PLZ_dropdown', 'PLZ_dropdown', 10, 2);
?>
]]>i am using content-product to show a product inside a wordpress post.
Now the product should be related to the post, so I need to get the post title inside the woocommerce product.
When i use get_the_title, the_title … i always get the title of the product, not the post.
Is there a way to get this?
Thanks!
]]>This is the code I have put into the custom CSS area:
ul li{
list-style-type: disc;
list-style-position: inside;
padding: 0px 0 0px 20px;
text-indent: -1.5em;
}
If its not not possible then what is the alternate solution.
Thank you!
]]>we have a problem with shortcodes from other plugins inside shortcodes from “ultimate shortcode” plugin. an example:
this is a simple button shortcode from “ultimate shortcode”:
[su_button url=”#” style=”soft” background=”#3399FF” color=”#ffffff” size=”4″ radius=”5″ text_shadow=”0px 0px 0px #000000″]Download[/su_button]
also we have a membership plugin that generates a link from a shortcode. as admin i integrate [ds_upgrade id=4107-yFfexjuuO3et] in a locked membership page. and when the user is logged in he see something like this https://www.digistore24.com/upgrade/4107-yFfexjuuO3et/ORDERID
now we would combine the two shortcodes here:
[su_button url=”[ds_upgrade id=4107-yFfexjuuO3et]” style=”soft” background=”#3399FF” color=”#ffffff” size=”4″ radius=”5″ text_shadow=”0px 0px 0px #000000″]Download[/su_button]
in result the button layout in frontend is broken. is there any workaround to use this method above? how can we combine these shortcodes?
Best Regards
Tobias