• Code Junkie

    (@code-junkie)


    I’m trying to make a change to the search results in wordpress and it’s confusing me a lot. I’m not very familiar with wordpress, so I’m still getting used to the way it works.

    What I’m trying to do is to reformat the search results to display the way the portfolio page content is formatted. You can see how the portfolio page content is formatted here: https://www.anthembranding.com/portfolio/ .

    Basically, the portfolio search results run off of a for loop someone wrote before I started working on it. The for loop is run by an array. The array is generated by the get_pages() function.

    I’ve already tested this and the for loop can correctly format any of the content on the site. I think all I need to know is which function I need to be using to generate an array that displays the search results.

    Does anyone know which function I can use to return this array?

Viewing 1 replies (of 1 total)
  • esmi

    (@esmi)

    Have a look at the search.php file in the default theme.

Viewing 1 replies (of 1 total)
  • The topic ‘Reformatting My Search’ is closed to new replies.