teemberland
Forum Replies Created
-
Forum: Plugins
In reply to: [Get Use APIs - JSON Content Importer] Get Specific Key ValueHi @berkux , thank you for your response.
I ended up changing the JSON structure as you suggested. Then pass numberofdisplayeditems=1 and basenode that I want to select to get the specific value. Nice plugin!
Hi @devnihil I was able to solve this issue using a different method. You may close this ticket now. Thank you so much for your assistance.
Hi @devnihil , I added the following code in my functions.php, but unfortunately, the blog author still shows on Discord.
add_filter( 'wpseo_opengraph_author_facebook' , '__return_false' );Do you have another solution for this?
- This reply was modified 5 years, 2 months ago by teemberland.
- This reply was modified 5 years, 2 months ago by teemberland.
- This reply was modified 5 years, 2 months ago by teemberland.
@calrk I finally fixed this issue and I believe it will fix your issue as well. Like you, we want to use post name for permalinks. If you are using nginx to serve your website, look for ‘try_files’ line in your config file and update it to:
try_files $uri $uri/ /index.php$is_args$args;Adding $is_args (which will print a ? character if query arguments are found) will allow WordPress to properly receive and interpret the query parameters.
Hi, I’m having the same issue. Can you tell me what the solution was?
- This reply was modified 5 years, 4 months ago by teemberland.
Forum: Plugins
In reply to: [Block Lab] Rendering programmatically created blocksHi @ryankienstra , I just figured this out. You’re right, the array was getting overwritten each time. Thank you for your input!
Forum: Plugins
In reply to: [Block Lab] Rendering programmatically created blocksHi @ryankienstra , I was able to figure it out after a few google search. I had an issue with the naming convention of the blocks. I didn’t know that I had to prepend my php file with ‘block-‘.
I have a question about rendering values on the front-end from a loop. See my code below:
<?php $json = '{"surveys":[{"name":"Dev Survey","description":"Dev Survey","links":[{"name":"Test Survey","url":"https://www.yahoo.com/?"}]},{"name":"Dev Survey 2","description":"Dev Survey 2","links":[{"name":"Dev Survey 2","url":"https://www.google.com/"}]}]}'; $surveys = json_decode($json, true); foreach ($surveys['surveys'] as $key => $value) { foreach ($value['links'] as $key1 => $value1) { $fields = array( 'survey-links' => array( 'label' => $value1['name'], 'control' => 'text', 'default' => $value1['url'], ), 'survey-button' => array( 'label' => 'Button', 'control' => 'text', 'default' => $value1['name'], ) ); } } ?>With the code above, only the last item in survey-links array renders on the page, but what if I wanted to render all urls? is there a way to loop from block_field(‘survey-links’); function? Ideally I want to display the urls in separate div on the page/post. I hope my my inquiry make sense. Thank you in advance!
- This reply was modified 5 years, 7 months ago by teemberland.