brign
Forum Replies Created
-
@bcworkz
Ok I will always use that code button~!
Thank you. let me know…@ikaring thanks
u right OTL
function aaaaa(){
$term = get_term_by(‘slug’, ‘paper’, ‘sort’);
$taxid = $term->term_taxonomy_id;
//var_dump( $taxid );
//echo $taxid ; = 10
return $taxid ; = nothing
}
—————–
$taxid = aaaaa();
echo $taxid; = nothingIt’s hard;;;
Actually i want a code.
return term’s id value for use control the ‘location value’ of param => ‘taxonymy’ used by acf register_field_grouphere is my full code..
add_action( ‘init’, ‘get_tax_paper_id_by_slug’, 999 );
function get_tax_paper_id_by_slug() {
$term = get_term_by(‘slug’, ‘paper’, ‘sort’);
$taxid = $term->term_taxonomy_id;
//var_dump( $taxid );
//echo $taxid;
return $taxid ;
}
if(function_exists(“register_field_group”)){
$taxid = get_tax_paper_id_by_slug();
.
.
.
.
.
}it is not normal… anyway thanks @ikaring
@ikaring
function aaaaa{
$term = get_term_by(‘slug’, ‘paper’, ‘sort’);
$taxid = $term->term_taxonomy_id;
//var_dump( $taxid );
//echo $taxid = 10
return $taxid = nothing
}
———————
$taxid = aaaaa();
echo $taxid; = nothingboth result is … like this
var_dump( intval($taxid) ); = int(10)
or change $taxid to
$taxid = $term->term_id; = int(10)- This reply was modified 7 years, 11 months ago by brign.
funtion get_term_id_by_slug() {
$term = get_term_by(‘slug’, ‘sometermslug’, ‘someterm’);
$taxid = $term->term_taxonomy_id;
//var_dump($term );
//var_dump($taxid);
return $taxid;
}
result is like this…var_dump($term );
bool(false) object(WP_Term)#1251 (11) { [“term_id”]=> int(10) [“name”]=> string(5) “Paper” [“slug”]=> string(5) “paper” [“term_group”]=> int(0) [“term_taxonomy_id”]=> int(10) [“taxonomy”]=> string(4) “sort” [“description”]=> string(0) “” [“parent”]=> int(0) [“count”]=> int(15) [“filter”]=> string(3) “raw” [“term_order”]=> string(1) “0” }//var_dump($taxid);
NULL int(10)i want return term’s ID value 10
- This reply was modified 7 years, 11 months ago by brign.
@ikaring thanks your reply.
yes, your right. It’s a typing error.
term = get_term_by(‘slug’, ‘sometermslug’, ‘sometaxname’);
but still occurs..Forum: Plugins
In reply to: [Kalin's PDF Creation Station] Image issue .. not displayedI find the reason.. is that image path.
so .. I make relative path and it is perfect in my case.
I’m using multisites. so maybe.. it makes some ploblems.Forum: Plugins
In reply to: [Kalin's PDF Creation Station] Image issue .. not displayedHi Kalin
Thanks for this great plugin!.. It’s awesome!But, I have just one and really big ploblem is that Image is not displayed my page..
All of checked Include Images, Run other plugin shortcodes, and content filters
I just upload media file and featured image in my post type
This is result..Media file
html – <img class=”alignnone size-medium wp-image-695″ src=”https://temp.xxx.com/wp-content/uploads/sites/10/2013/09/cropped-sample411-300×78.jpg” alt=”cropped-sample411.jpg” width=”300″ height=”78″>
pdf – nothing but have space[post_thumb size=”full” extract=”none”]
html – https://temp.xxx.com/wp-content/uploads/sites/10/2015/02/cbr.jpg
pdf – nothing<p><img src=”[post_thumb size=”full” extract=”none”]” width=”300″ height=”100″></p> tag result is
html – <img src=”https://temp.xxx.com/wp-content/uploads/sites/10/2015/02/cbr.jpg” width=”300″ height=”100″>
pdf – nothingbut all of the other functions are Ok …. short code, add pages, top and footer area rendering and etc..
Do you have an suggestion Kalin?..My wordpress is version is 4.1 and PDFCreation version is 4.2.3
Thanks!