Skip to content

Tag: wordpress

Editing this Snippet to Run One Time Only

We have thousands of custom posts where we need to update the_excerpt using this PHP snippet (which works great when a single post is saved). Is there a way to tweak this code so that we can run it one time (like when we load a page) and then delete it? We’re trying to update each post’s excerpt b…

Attempting something new in WP. Issue resetting WP loop

Im working in WP and basically what I’ve got set up is some logic to create a separate carousel for each category of my blog. For each carousel im displaying the top viewed posts for each category. Each Item in the carousel has a post thumbnail, author name and author avatar. My problem(if you scroll do…

Adding Custom Footer to page Template

I have made a custom footer layout using “dummy” content to start with. This is the footer html To get this to display on the bottom of my last “scrolling section” (#contact) I have added this html footer to : page-templates/template-full-page.php However my footer is not displaying at…

How to hide specific elements in General Settings

There’s any way to hide these elements? I only want to keep “Site Title” and “Tagline” two fields in General Settings page. like that Answer There is no filter to hide disable the fields, you can hide the fields using css but they are still there. you can add this to your themes …