Can't access dashboard or plugin page
Hello guys I am using wordpress.com (not .org)
Just now I edited a plugin in the editor in dashboard.
There were some errors in the code and my site crashed.
I couldn't log into the dashboard (error 500) and when I go to the plugin page it tells "error fetching plugins".
I guess wordpress.com doesn't support FTP. Then how should I deactivate the error plugin? Thanks for help.
See also questions close to this topic
How to submit td value of jquery and php to sql database
I am new in programming world and have very small knowledge on it. I am having trouble on updating my database.
I have the HTML and PHP code to generate a data from
Mysqldatabase and a jquery to sum-up the total value of amount column. As to get my values into a variables then return its values to show up.
I hope someone can help me with this.
Calculate expiry date automatically after adding registration date and no of months in backpack-for-laravel
I have a form with
start_dateas a field (date picker) and
monthsas a field (dropdown) to select no of months.
Now i want to calculate
expiry_dateby selecting the
start_datefrom calendar and no of
Like I have these form fields:
$this->crud->addField([ 'name' => 'start_date', 'type' => 'date', 'label' => 'Start Date', 'wrapperAttributes' => [ 'class' => 'form-group col-md-12' ] ]); $this->crud->addField([ // select_from_array 'name' => 'month', 'label' => "Select Package", 'type' => 'select_from_array', 'options' => ["1 month","3 month","6 month","1 year"], 'allows_null' => false // 'allows_multiple' => true, // OPTIONAL; needs you to cast this to array in your model; ]); $this->crud->addField ([ // Text 'name' => 'expiry_date', 'label' => "Expiry Date", 'type' => 'text' ]);
What i want to do is:
1) Take the input from the
2) calculate the expiry date from the above these fields.
3) Automatically set the value of field
expiry_datewith the expiry date.
I read some where that we could create a function in the model and call in it in controller in field parameters something like:
$this->crud->addField ([ // Text 'name' => 'expiry_date', 'label' => "Expiry Date", 'type' => 'text' 'function' => 'getExpiryDate()' ]);
But I don't think it works like this.
Please help i am new to backpack-for-laravel.
Thanks in Advance
Magento Fetching image through childcategory
I have the following code set up to display the subcategories of a category. (to achieve an all categories category).
however i dont seem to be able to fetch my images throuhg childcategories, can anyone help me with this ?
my code looks as following.
<?php $_helper = Mage::helper('catalog/category') ?> <?php $categoryId = 465;?> <?php $category = Mage::getModel('catalog/category')->load($categoryId) ?> <?php $_categories = $category->getChildrenCategories() ?> <?php if (count($_categories) > 0): ?> <ul> <?php foreach($_categories as $_category): ?> <li> <?php $_category = Mage::getModel('catalog/category')->load($_category->getId()) ?> <?php if($_category->hasChildren()):?> <?php $_subcategories = $_category->getChildrenCategories() ?> <ul class="catblocks"> <?php foreach($_subcategories as $_subcategory): ?> <li class="item<?php if(($i-1)%$_columnCount==0): ?> first<?php elseif($i%$_columnCount==0): ?> last<?php endif; ?>"> <a href="<?php echo $_helper->getCategoryUrl($_subcategory) ?>"><?php echo $_subcategory->getName() ?></a> <a href="<?php echo $_helper->getCategoryUrl($_subcategory) ?>"><img src="<?php echo $_subcategory->getImageUrl() ?>" alt="<?php echo $_subcategory->getName() ?>" /> <span><?php echo $_subcategory->getName() ?></span></a> <?php $_category2 = Mage::getModel('catalog/category')->load($_subcategory->getId()) ?> <?php if($_category2->hasChildren()):?> <?php $_subcategories2 = $_category2->getChildrenCategories() ?> <?php endif; ?> </li> <?php endforeach; ?> </ul> <?php endif; ?> </li> <?php endforeach; ?> </ul>
Wordpress Rewrite Rules Subdomain using htaccess
I have two domains under the same registrar (Godaddy), and a site hosted on one. I'm trying to mask the domain of just the blog subdomain to other domain, including all child domains (blog posts). For example
How would one accomplish this using .htaccess mod_rewrite or wp_rewrite?
Pull text from a txt on server
I have a txt file on server testy.txt. Inside this txt there is 2 columns, first column is just a list of ascending number and 2nd column has a message
1,get well son
2,I'm here for you
3,chin up, stay strong
I'm trying to pull the txt corresponding to the number and show the message on the page using wordpress
WordPress count custom post type Advanced Custom Field
I have WordPress site and the plugin Advanced Custom Fields, I have created a custom post for testimonials, inside is custom field called 'ratings' where you in put a number e.g. 1, 3.5, 5 etc.
I want to take all the number from the field for each post and add them up to a total or average out of 5.
However I'm struggling I can get it to populate the ratings e.g. 5, 5
But I can't get them to add up, can any one help please?
This is what I have below so far...
<?php $args = array( 'post_type' => 'testimonial', 'posts_per_page' => 9999 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php $count = (get_field('rating')); print_r($count); $add = count($count); return $add; echo $add; ?> <?php endwhile; ?>